Abstract class abstract

    1. The class modified with the keyword abstract is called an abstract class. In the development process, the abstract class is often placed at the top level, and the characteristic attributes of the object are not described in detail;

     2. An abstract class cannot create an object. When an object is to be created, the object must be created by the subclass after inheritance from the subclass;

     3. If there are abstract methods in a class, the class must be declared as an abstract class;

     4. There can be one or more abstract methods in an abstract class, or there can be no abstract methods;

     5. I don't know that there are abstract methods in abstract classes, but there can also be concrete member variables and member methods

 

Guess you like

Origin blog.csdn.net/LL__Sunny/article/details/108536514