1.java中有虚函数,但是没指针,那也许会有这样的问题,那java是怎么实现多态的?
java中可以肯定是有虚函数的,而且我们如果不申明为final形他默认就是虚函数.不用vitual申明.
"In Java, you do not need to declare a method as virtual. Dynamic binding is the default behavior. If you do not
本文地址:http://com.8s8s.com/it/it10288.htm