A class is constructed in two sections, called
A. | header and body |
B. | type and parameters |
C. | declaration and implementation |
D. | pointer and variable |
Option: C Explanation : Click on Discuss to view users comments. |
The declaration section holds
A. | data members |
B. | data members and function prototypes |
C. |
data members, function prototypes and the functions themselves
|
D. | none of these |
Option: B Explanation : Click on Discuss to view users comments. |
A. |
Each object's nonstatic data members will be stored in the same memory location
|
B. |
Each object will be stored in the same memory location
|
C. |
Each object will store a separate copy of any nonstatic data members.
|
D. |
Two objects of the same class cannnot be declared
|
Option: C Explanation : Click on Discuss to view users comments. |
A. |
Each object will store a separate copy of any static member data.
|
B. |
Each object will store a separate copy of any member function
|
C. |
Each object will store a separate copy of any nonstatic data members.
|
D. |
Two objects of the same class, cannot be declared
|
Option: C Explanation : Click on Discuss to view users comments. |