关于Java重载
Java的多态是不是表现在函数的重载中?
多态.即一种消息多中表现
重载 是多态的静态体现,因为他一中调用方法通过不同的(参数签名)可以得到多种体现
重写 多态的动态体现,这也是java中动态绑定的体现,调用一个方法是在运行时刻才确定调用的是哪个方法
You’ve seen in this chapter that it’s impossible to understand, or even create, an example of polymorphism without using data abstraction and inheritance. Polymorphism is a feature that cannot be viewed in isolation (like a switch statement can, for example), but instead works only in concert, as part of a “big picture” of class relationships. People are often confused by other, non-object-oriented features of Java, like method overloading, which are sometimes presented as object-oriented. Don’t be fooled: If it isn’t late binding, it isn’t polymorphism.