The keyword virtual indicates that
A. | a derived class has public access to a base class |
B. | more than one base class exists |
C. |
a base class should be used only once in inheritance
|
D. |
a derived class should have more than one base class constructed
|
Option: C Explanation : Click on Discuss to view users comments. |
A. | liberal |
B. | conservative |
C. | either (a) or (b) |
D. | none of these |
Option: B Explanation : Click on Discuss to view users comments. |
The class specifier for
A. | public members |
B. | public and protected members |
C. | any specific class members you choose |
D. | no class members |
Option: C Explanation : Click on Discuss to view users comments. |
A. | Private:: P ::F(); |
B. | private: P::F; |
C. | private : C :: F(); |
D. | private : C :: F; |
Option: C Explanation : Click on Discuss to view users comments. |
Reference variables and const class members
A. | must be assigned values in any derived class |
B. | must never be initialized in a base class |
C. |
must be initialized, rather than assigned values
|
D. | must not exist if a class is to be a base class. |
Option: C Explanation : Click on Discuss to view users comments. |