在這個例子中, Printable 介面只有一個方法,它的實現是在 A 類中提供的。 interface printable { void print(); } class A6 implements printable { public void print() ...
確定! 回上一頁