Q1. By using the template classes prepare down a C++ program which creates a stack of different types? Don’t use struct.
Q2. What do you mean by virtual function? Describe how virtual function is implemented in the C++ compiler?
Q3. Define the abstract class with the help of an illustration from real life?
Q4. prepare down a class which implements complex number comprising of two data members real and imaginary both are of float type. As well overload insertion operator (<<) for this class?
Q5. Sketch the diagram for Input-output class hierarchy of C++?
Q6. When does an exception class need data members? prepare down an illustration which throws an exception with argument?
Q7. describe how does overloading of prefix and suffix decrement operators vary? Describe with help of an illustration?
Q8. prepare detail notes on (Any two):
a) Nested classes
b) Template class
c) File handling
d) Multiple Inheritance