Which is the correct statement for default constructors?

Thành Nguyễn

New member
Which is the correct statement for default constructors?
A. The constructors with all the default arguments
B. The constructors with all the null and zero values
C. The constructors which can’t be defined by programmer
D. The constructors with zero arguments
 
Answer: d
Explanation: The closest answer to the question is that a default constructor is a constructor with zero arguments. But this is not the actual case. Actually the constructors provided by the compiler are default constructors. And the constructors with zero arguments defined by the programmer are zero argument constructors.
 

Tìm kiếm

Back
Top