Q1. Define the term virtual function with illustration? Why do we require virtual function? When do we make the virtual function ‘Pure’? Illustrate the implications of making a function a pure virtual function?
Q2. Describe this pointer with illustration. Illustrate the applications of this pointer?
Q3. Describe four key features of object-oriented approach giving appropriate real-life illustration(s).
Q4. Write down a program to overload binary operator ∗ by using friend function, to perform multiplication of integer with a vector.
Q5. Write down a template class in C++ which creates a queue of integers or string or float. As well write down a member function which displays the items.
Q6. Describe Friend function with the help of an appropriate illustration. Illustrate the merits and demerits of using the Friend function?