Oops Mid Sem 1 2023
Oops Mid Sem 1 2023
I
I Note: Attempt Q. No. 1 which is compulsory and any two more questions from remaining.
-------------------------------------------------------------------------------------------------------------------
II
Q. No. Question Max.Marks CO(s)
I
Explain inline function with example. 2 COi
Explain the concept of array of objects and pointers to objects 3 CO2
with an exam le
What is this pointer. 2 COi
Discuss the importance of Data Abstraction and Encapsulation 3 COl.
with a real time exam le.
2a Design a class from which only one object can be created. If 4 CO2
more than one ob·ect is created the ro ram should terminate.
b Name the operators that cannot be 'overloaded. Justify why 6 CO3
they cannot be overloaded? Write program to overload<< and
>> o erators in com lex numbers.
Display a stack program in C++ using class, overloaded 7 CO2
constructors, member functions(push,pop), friend function
dis la stack content
y Differentiate between run time polymorphism and compile 3
time ol mor hism.
CO2