Which Constructor Definition Will Produce A Compile Time Error #1212
Which constructor definition will produce a compile time error?
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 Default Arguments vs Overloading, Upcasting and Downcasting - OOPs MCQ: Constructors Overloading - Quiz No.2.
Which constructor definition will produce a compile time error?
className(int x=0);
className(char c);
className(int x=0,char c);
className(char c,int x=0);