Define class and objects. Show the use of default, parameterized and copy constructor with your own example.
Differentiate between exception and error. What is the use of virtual function? Create a class named Shape with member function draw(), then derived the class Rectangle, Circle and Square from Shape class, and override the draw() functions in all the derived classes with appropriate messages.
How do you convert basic data type to another basic data type? Create a class named Point with two data members x and y. Overload the binary addition operator to add the two objects of Point class.
Attempt any Eight questions
[8x5=40]How do you open, close, read and write in file?
Use the concept of function template to find the difference of any two integers.
Show the use of static data members with an example.
Can we use structure instead of class? What might be the limitations of object oriented programming approach? Explain.
Illustrate with an example to show the concept of multi-level inheritance.
Define namespace and its uses. What are the uses of new and delete?
Write a program to create a text file and write the string given by user.
Discuss the three types of access specifiers in inheritance.
What is data conversion? When do we use inline function? Explain.