Which two statements are true regarding the creation of a default constructor? (Choose
A. The default constructor initializes method variables.
B. The compiler always creates a default constructor for every class.
C. The default constructor invokes the no-parameter constructor of the superclass.
D. The default constructor initializes the instance variables declared in the class.
E. When a class has only constructors with parameters, the compiler does not create
a default constructor.
Answer: D, E
I believe the right answer is :C,E.
Do u follow me ?
Originally posted by Marcus Cain:
I believe the answer to be C, E.
C will always be True. Colin in your example you have created Constructors and therefore the Default Constructor does not exist, as you state in your answer to E.
I would challenge you to a battle of wits, but I see you are unarmed - shakespear. Unarmed tiny ad:
Programmatically Create PDF Using Free Spire.PDF with Javahttps://coderanch.com/wiki/703735/Programmatically-Create-PDF-Free-Spire