1.super () and this () difference:
Super (): The construction method of calling the parent class invisible parameter;
Super (formal parameter): a constructor method that invokes a parameter in the parent class;
This (formal parameter): Invokes another form of construction method in this class;
Note: Put in the first line of the method;
The difference between 2.super and this:
Super. Member variables of the parent class;
Super. Methods of the parent class;
Super: The implementation calls the member variables and methods of the parent class when the member variables, methods, and parent classes in the subclass are the same;
This: represents the current object;
Where to use: This is required if the parameter of the function and the member variable have the same name. Member Variable name
The difference between super () and this (), super, and this in Java