Inheritance (syntax)
public class ClassName extends SuperClass {
...
}
- a subclass inherits all of the superclass's behavior and
can override methods.
- To call an overridden method from the superclass, use
the
super
keyword:
super.methodName(parameters);