More than 31 states

 

 

 

 

 

In a word: a method in the parent class, subclass after rewriting may be in different forms .

But the upward transition (parent class into subclasses), the "sub-class" parent class and method can be used only after derived, you can not use the unique method subclasses, namely: the "sub-class" is defective of.

Guess you like

Origin www.cnblogs.com/CPU-Easy/p/12171414.html