When the same functionality appears in more than one class, but the functional body is different, it is possible to pull up, at which point only the function definition is extracted and the functional body is not extracted.
Abstract: Can not understand.
Features of abstract classes:
1. Abstract methods must be defined in abstract classes
2. Abstract methods and abstract classes must be decorated with the abstract keyword
3. Abstract classes cannot create objects with new because it makes no sense to invoke abstract methods
4. The method in the abstract class is to be used, after all its abstract methods have been replicated by the subclass, a subclass object call is made, and if the subclass covers only a subset of the abstract methods, then the subclass is an abstract class
Abstract classes and general classes are not much different, how to describe things, just how to describe things, but there are some things that things do not understand, these uncertain parts, but also the function of the thing, need to explicitly appear, but can not define the subject, through the abstract method to express.
Abstract analogy is a general class of abstract functions, that is, you can define abstract methods in a class, abstract classes cannot be instantiated
Note: Abstract methods may not be defined in an abstract class, and this simply does not allow the class to establish an object.
The abstraction of Java learning