Q:

Which among the following can be used in place of default constructor?

0

Which among the following can be used in place of default constructor?


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

All Answers

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

 (b).constructorName(int x=0,int y=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
Can a class have more than one function with all t... >>
<< Which among the following is true?...