The second usage of super
1.super.
Used in methods and constructors in subclasses, representing access to properties and methods of parent classes.
2.super.
Attribute: Access the attribute in the parent class.
3.super. Method name (argument): Access the method in the parent class.
Example:

所有评论(0)