Q:

If a constructors should be capable of creating objects without argument and with arguments, which is a good alternative for this purpose?

0

If a constructors should be capable of creating objects without argument and with arguments, which is a good alternative for this purpose?


  1. Use zero argument constructor
  2. Use constructor with one parameter
  3. Use constructor with all default arguments
  4. Use default constructor

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

 (c).Use constructor with all default arguments

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

OBJECT ORIENTED PROGRAMMING - OVERLOADING MCQ

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
The Constructors with all the default arguments ar... >>
<< Which among the following is true for constructors...