The syntax for creating subclasses:
Description | Syntax |
To declare a subclass | public class SubclassName extends SuperClassName{} |
To call a superclass constructor | super(args) |
To call a super class | super.methodName(argumentList) |
The syntax for creating subclasses:
Description | Syntax |
To declare a subclass | public class SubclassName extends SuperClassName{} |
To call a superclass constructor | super(args) |
To call a super class | super.methodName(argumentList) |