This document outlines an assignment for an Object Oriented Programming course. It provides 6 programming tasks focusing on core OOP concepts in C++ including class declarations and definitions, accessing class members, arrays of objects, scope resolution operator, constructors including default and parameterized, calling parameterized constructors, destructors, and using the "this" keyword to call member functions. Students are asked to write C++ programs that demonstrate these fundamental OOP principles.
This document outlines an assignment for an Object Oriented Programming course. It provides 6 programming tasks focusing on core OOP concepts in C++ including class declarations and definitions, accessing class members, arrays of objects, scope resolution operator, constructors including default and parameterized, calling parameterized constructors, destructors, and using the "this" keyword to call member functions. Students are asked to write C++ programs that demonstrate these fundamental OOP principles.
This document outlines an assignment for an Object Oriented Programming course. It provides 6 programming tasks focusing on core OOP concepts in C++ including class declarations and definitions, accessing class members, arrays of objects, scope resolution operator, constructors including default and parameterized, calling parameterized constructors, destructors, and using the "this" keyword to call member functions. Students are asked to write C++ programs that demonstrate these fundamental OOP principles.
1. Write a C++ program Illustrating Class Declarations, Definition, and
Accessing Class Members. 2. Write a C++ program to implement array of objects. 3. Write a C++ program that demonstrates the use scope resolution operator. 4. Write a C++ program to illustrate default constructor, parameterized constructor. 5. Write a C++ Program to show how a parameterized constructor can be called. Demonstrate the use of Destructor by writing another program. 6. Write a C++ program to show how a member function can be called by using “this” keyword by writing a program.