Object Oriented Programming With C++ (sem 4) Unit 3
Object Oriented Programming With C++
1)What is constructor? Also explain parameterized Constructor.2) Write a C++ program to overload '++' operator for sample class with x & y as Integer Datamembers and consider suitable member functions for getting and displaying values of x and y.
3) What is Inheritance? Also explain multiple Inheritance with suitable example.
4) What is Operator Overloading? What are rules for operator overloading.
5)What is dynamic Constructor? Explain.
6) Explain default constructor with suitable example.
7) Write rules for operator overloading.
8) Explain multilevel inheritance in detail.
9) What is dynamic constructor? Explain with suitable example.
10)What is destructor?
11) What is operator overloading? Explain with suitable example.
12) Design a class 'student' with roll no, name, marks, as data members and create copy
constructor to create objects from already created object.
13) What is inheritance? Explain single level and multilevel inheritance with suitable
example.
14) What is parameterized constructor? Explain with suitable example.
15)What is destructor? Explain with example.
16) What is constructor? How they are different from normal member function.
17) Define Inheritance. Explain types of inheritance.
18) Create a constructor for "Integer" class with M and N as data members and constructor for
initialize data members.
19)What is derived class.
20) Explain the constructor & constructors with Default Arguments in detail.
21) Define inheritance & explain the different form of inheritance? Give an example of each.
22) Differentiate between constructors and Destructors with example.
23)What is operator function ? Describe the
syntax of an operator function.
24) What is default constructor ? Give its
syntax. Explain the parameterized constructors in detail.
25) What are the different form of
inheritance ? Give an example for each.
26) Explain copy constructor with suitable
example.
27)List the properties of constructor
28) Design a classes such they support the
following statement :
Rupee r1, r2 ;
Dollar p1, p2;
r1=p1; // Coverts dollar to rupee
p2=r2 ; // Coverts rupee to dollar
(US currency)
Write a complete program which does
such conversions (Assume 1 dollar=61.04
Rupee).
29) Create a class, which keeps track of the
number of its instances. Use static data
member, constructors, and destructors to
maintain updated information about active
objects.
30) Illustrate with suitable example, how base
class member functions can be invoked in
a derived class if the derived class also has
a member function with the same name.
31) What are read-only objects? What is the
role of constructor in creating such objects
32)Why is the friend function not allowed to
access members of class directly although
its body can appear within the class body?
Post a Comment