关于多态

如果对象的类型是Dog,而引用它的却是Object,则它不能调用Dog的方法。

posted @ 2013-09-11 15:05  boom boom pow  阅读(102)  评论(0编辑  收藏  举报