Subclass inherits parent class represents sub-analogy his parent class contains more information and methods
When a subclass calls an overloaded construction method, it calls the constructor of the parent class, Super (); it is generally called implicitly if it is not written, and each call is preceded by all statements.
In a function, a subclass can be used where the parent class is used, which is often said to be polymorphic, the actual type of the variable is the actual class of the object referenced by the variable, and the function called by the variable is determined by the actual class of the variable, which is called dynamic binding.
such as: Object o =new int (); O.tostring () calls the ToString () method of int, and if the actual class does not have the method, find out if the method is available to his parent class until it is found.
instanceof Ensure that the object is in the target class, usage: if (object instanceof Circle) {};
Java Foundation Easy to point summary (i)