Q:

Which constructor among the following will be called if a call is made like className(5,’a’);?

0

Which constructor among the following will be called if a call is made like className(5,’a’);?


  1. className(int x=5,char c=’a’);
  2. int className(int x, char c, char d);
  3. className(int x, char c, int y);
  4. char className(char c,int x);

All Answers

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

 (a).className(int x=5,char c=’a’);

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
Which constructor definition will produce a compil... >>
<< Which among the following is true ?...