标签: java oop
当必须实施类来定义接口的所有方法时,为什么要这样做?
interface A{ void func1(); void func2(); } class B implements A{ // must implement fucn1 and func2 } // What is the point of this? A a = B b;