Size of a class is _____________

Giang Phạm

New member
Size of a class is _____________
A. Sum of the size of all the variables declared inside the class
B. Sum of the size of all the variables along with inherited variables in the class
C. Size of the largest size of variable
D. Classes doesn’t have any size
 
Answer: d
Explanation: Classes doesn’t have any size, actually the size of object of the class can be defined. That is done only when an object is created and its constructor is called.
 

Tìm kiếm

Back
Top