Some places should be noted that the use of abstract classes

What kind of class is an abstract class:

1, the modified class is abstract class is an abstract class, an abstract method of the abstract classes can be used, which may have non-abstract methods.

2, the abstract class has a method, when a certain class is an abstract class.

3, when inherited from the parent class, subclass if the method does not need to override the abstract parent class, subclass must be abstract.

1):

2):

 

3):

Published 25 original articles · won praise 0 · Views 529

Guess you like

Origin blog.csdn.net/weixin_42689746/article/details/103949623