Professional Documents
Culture Documents
2 marks questions
1) Give any four special characteristics of Constructor. ( 2 mks)
3) What is Constructor ?
4) What is Destructor
4 marks questions
1) Explain how to define a member function outside a class definition
and inside a class definition with the help of suitable example.
8) Write a C++ program using class with data members bookid and
bookname. Write member functions to accepts and display book
details. Count the number of books accepted and display the
total numbers of books. (Use static data member for maintining
book count.)
16) What is constructor? Explain copy constructor with the help of suitable
example.
19) Explain the use of new and delete operator with the help of suitable
example.
20) Explain with suitable example static data member and static member
function.
21) Write a C++ program to find maximum of two integer numbers of two
different classes using friend function. Write a C++ program to find maximum of
two integer numbers of two
different classes using friend function.
23) Write a C++ Program to find out minimum of two integer numbers
of two different classes using friend function.