ysunday 发表于 2013-11-26 22:09
记住一句话
多态就是
只有非静态的成员函数是编译看左边,运行看右边,
ysunday 发表于 2013-11-26 22:09
记住一句话
多态就是
只有非静态的成员函数是编译看左边,运行看右边,
quan23355 发表于 2013-11-26 22:03
在你的主函数中,你是以多态的形式创建对象,但静态方法不存在多态性,静态方法是属于类的,并不用创建对象 ...
欢迎光临 黑马程序员技术交流社区 (http://bbs.itheima.com/) | 黑马程序员IT技术论坛 X3.2 |