If a constructors should be capable of creating objects without argument and with arguments, which is a good alternative for this purpose?
A. Use zero argument constructor
B. Use constructor with one parameter
C. Use constructor with all default arguments
D. Use default constructor
Answer:C
If a constructors should be capable of creating objects without argument and with arguments, which is a good alternative for this purpose?
A. Use zero argument constructor B. Use constructor with one parameter C. Use constructor with all default arguments D. Use default constructor