Q:

Which constructor definition will produce a compile time error?

0

Which constructor definition will produce a compile time error?


  1. className(int x=0);
  2. className(char c);
  3. className(int x=0,char c);
  4. className(char c,int x=0);

All Answers

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

 (c).className(int x=0,char c);

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
If there is a constructor with all the default arg... >>
<< Which constructor among the following will be call...