Question: If a subclass constructor does not explicitly call a superclass constructor, The superclass fields will be set to the default values for their data types
If a subclass constructor does not explicitly call a superclass constructor,
The superclass fields will be set to the default values for their data types
Java will automatically call the superclass's default constructor immediately after the code in the subclass's constructor executes
Java will automatically call the superclass's default constructor just before the code in the subclass's constructor executes
It must include the code necessary to initialize the superclass fields
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
