Q1. Illustrate the merits of virtual function? describe how to obtain the dynamic polymorphism in C++ in the absence of the virtual function?
Q2. describe 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? prepare down an illustration where use of friend class or function is essential.
Q4. prepare 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. prepare 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 prepare 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.