4 min read
This study guide covers subclass constructors and the super keyword in Java. It explains how to use super to call superclass constructors, including default constructors. An example demonstrates creating a Rectangle subclass from a Quadrilateral superclass, illustrating constructor inheritance and initialization.
Give us your feedback and let us know how we can improve
Question 1 of 7
When a subclass is created, what happens to the constructors of its superclass? 🤔
They are automatically inherited
They are automatically overridden
They are not inherited and must be defined in the subclass
They are automatically overloaded