Q1. Illustrate the merits of virtual function? Explain how to obtain the dynamic polymorphism in C++ in the absence of the virtual function?
Q2. Explain how is it possible to encompass multiple inputs and outputs in a single cin and cout statement correspondingly?
Q3. What do you mean by friend class? Write down an illustration where use of friend class or function is essential.
Q4. Write down classes in C++ to make a queue of items and display the items stored in the queue. Items might be of type integer, string, float and user defined.
Q5. Write down a class complex in C++. It consists of two data members of type integer one for real part and other for the imaginary part. As well write the functions which can overload assignment and increment operators both suffix and prefix.
Q6. What do you mean by virtual base class? Describe with the help of an illustration.