Three characteristics such as many states

(1) Multi-state: a plurality of states, since the object inheritance and override mechanism, the same type of call in the same manner, the results obtained may not be as

(2) Classification of polymorphism: a: ​​Dynamic Polymorphism: polymorphism because overwriting mechanism leading b: Static Polymorphism: polymorphism due to the overloading caused

Guess you like

Origin www.cnblogs.com/Love-your-life/p/11297177.html