What is base class? Explain the types of inheritance.
Define class and object. How do you access members of a class? Write a program to demonstrate the concept of passing objects as function parameters and returning objects.
List the restrictions on operator overloading. How do you convert user defined data type to another user defined data type? Explain with an example.
Attempt any Eight questions
[8x5=40]Differentiate between structure programing and object oriented programming approach.
Define inline function and namespace. What are the tasks of new and delete?
How do you create and call destructor? Illustrate with an example.
What are the advantages of inheritance? How do you overload unary operator?
Distinguish between virtual and pure virtual function. Why do we need friend function?
Write the hierarchy of stream class. List some formatted and unformatted Input Output functions in file handling.
What is file access pointer? Write a program to copy the content of one file to another?
Define exception. Write a template function to add the different types of two numbers.
What is class template? Define virtual base class, concrete class and polymorphism.