Department of Computer Science & Engineering Question Bank: Constructors, Destructors
Department of Computer Science & Engineering Question Bank: Constructors, Destructors
QUESTION BANK
UNIT I
PART A
PART B
1. Explain the declaration of class in C++ .How will you define the member function
of a class? Explain
2. Explain the function of constructor with their declaration and definition inside
class.
3. Write a C++ program to implement stack and its operations PUSH and POP.
4. What are the rules associated with constructor and destructor functions in a class?
Illustrate with example the various ways of defining them.