Q:

Which is the correct syntax for using default arguments with the constructor?

0

Which is the correct syntax for using default arguments with the constructor?


  1. default constructorName(default int x=0)
  2. constructorName(default int x=0)
  3. constructorName(int x=0)
  4. constructorName()

All Answers

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

 (c).constructorName(int x=0)

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
How many parameters must be passed if only the fol... >>
<< Can a class have more than one function with all t...