problem 1: Describe the use of a constructor function in a class? Give an appropriate illustration of a constructor function in a class.
problem 2: Design a class containing the constructor and destructor functions which should display the number of object being made or destroyed of this class type.
problem 3: prepare a C++ program, to determine the factorial of a number by using a constructor and a destructor (generating the message “you have done it”).
problem 4: Define a class ‘string’ with members to initialize and find out the length of the string. Overload the operators ‘+’ and ‘+=’ for the class ‘string’.
problem 5: describe the concept of inheritance with the help of an illustration.
problem 6: What do you mean by virtual base class? When do we make it?
problem 7: prepare a program in c++ which describes the use of inheritance.
problem 8: What do you mean by the function returning a pointer? Give any appropriate illustration to support your answer.
problem 9: Distinguish between the compile time polymorphism and run time polymorphism.