A mechanism for treating different implementations as logically "the same kind of thing" - usually polymorphism is implemented via interface implementation and class inheritance.
l一种逻辑上做相同事情,但却有不同实现的机制。我们通常称之为多态机制。
A mechanism for treating different implementations as logically "the same kind of thing" - usually polymorphism is implemented via interface implementation and class inheritance.
l一种逻辑上做相同事情,但却有不同实现的机制。我们通常称之为多态机制。
应用推荐