Q:

Which is a good alternative instead of having one zero argument constructor and one single argument constructor with default argument?

0

Which is a good alternative instead of having one zero argument constructor and one single argument constructor with default argument?


  1. No constructor defined
  2. One default value constructor
  3. Defining the default constructor
  4. Using one constructor with two arguments

All Answers

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

(b).One default value constructor

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
What is upcasting?... >>
<< Which is the correct statement for default constru...