3 min read
This study guide covers using the super
keyword in Java to call superclass methods. It explains how super helps in method overriding/overloading by utilizing the superclass implementation. The guide provides an example with a Rectangle class illustrating super
within the isEquivalent() method and the constructor.
Give us your feedback and let us know how we can improve
Question 1 of 3
How do you call a method from the superclass within a subclass using the super
keyword? 🤔
super().methodName();
super.methodName();
this.super.methodName();
superclass.methodName();