constructor without return type, otherwise error: The constructor call must is the first.
The static method, which is statically bound, does not need to be overwritten, cannot be overwritten, and is overwritten without static modification.
Inheritance Understanding:
Subclass Child Inherits Parent class father
The child class object is in heap memory, contains the public property inherited from the Father class +public method + own Property + own method,
The declaration of the variable Father f = new children ();
There are several situations to note:
If the attribute methods in the Father class have static or final or private adornments,
Children has a property method of the same name, at which time it is statically bound, unable to implement polymorphism, and heap memory has been statically bound to father by declaration.
F contains only the methods and properties defined in the Father class, which can be dynamically overwritten by the quilt class (excluding static overrides).
Static inheritance and dynamic inheritance of Java