How many data members can a class contain?

Thành Nguyễn

New member
How many data members can a class contain?
A. 27
B. 255
C. 1024
D. As many as required
 
Answer: d
Explanation: Any class can have as many data members as required. The only restriction that may arise is when there is not enough memory space. This gives flexibility to define a class with best properties possible.
 

Tìm kiếm

Back
Top