Which Constructor Among The Following Will Be Called If A Call #116
Which constructor among the following will be called if a call is made like className(5,’a’);?
This multiple choice question (MCQ) is related to the book/course gs gs111 OOP Object Oriented Programming Java. It can also be found in gs gs111 Constructors and Destructors - OOPs MCQ: Constructors - Quiz No.2.
Which constructor among the following will be called if a call is made like className(5,’a’);?
className(int x=5,char c=’a’);
int className(int x, char c, char d);
className(int x, char c, int y);
char className(char c,int x);