你说的多态是polymorphism吗?虚函数是abstract methord么?
如果是的话JAVA也用虚函数解决。
public abstract class my_class
{
//other property...
public abstract int methord_name();
}
///////////////////////////////////////////////////////////////////
public final class my_second_class extends my_class
{
public int methord_name()
{
//statments...
}
}

解决方案 »

  1.   

    it is a syntax error if a class with one or more abstract methods is not explicitly declared abstractif a subclass is derived from a superclass with an abstract method,and if no definition is supplied in the subclass for that abstract method,that method remains abstract in the subclass. consequently,the subclass is also an abstract class and must be explicitly declared as an abstract class.
      

  2.   

    很多书有例子,主要是dynamic method binding
      

  3.   

    以下是我的理解:
       利用向上转型和后期绑定机制,把衍生类型的对象变为基类型时,确保基类型的对象其reference指向衍生类型对象,这样通过后期绑定,最后会唤起衍生对象的方法,这个问题在<JAVA编程思想>里面讲得很清楚