1.

If a programmer defines a class and defines a default value parameterized constructor inside it.
He has not defined any default constructor. And then he try to create the object without passing arguments, which among the following will be correct?

A. It will not create the object (as parameterized constructor is used)
B. It will create the object (as the default arguments are passed)
C. It will not create the object (as the default constructor is not defined)
D. It will create the object (as at least some constructor is defined)
Answer» C. It will not create the object (as the default constructor is not defined)


Discussion

No Comment Found