Mid Term
1. Which part of an object exhibits its state?
2.
Inheritance is a way to
3.
Suppose you have batch een given the following design, "A person has a name, age, address and sex. You are designing a class to represent a type of person called a patient. This kind of person may be given a diagnosis, have a spouse and may be alive".
Given that the person class has already been created, what of the following would be appropriate to include when you design the patient class?
4. What problem(s) may occur when we copy objects without using deep copy constructor?
5. this pointers are not accessible for static member functions.
6. A static member function cannot be declared.
7. _______ remain in memory even when all objects of a class have been destroyed.
8. Friend functions are _____________ functions of a class.
9. ___________, which means if A declares B as its friend it does NOT mean that A can access private data
of B. It only means that B can access all data of A.
10.
The statement obj A=objB; will cause a compiler error if the objects are of different classes.