介面定義了一個新的參照型別。可以使用介面型別來宣告變數,在方法中宣告引數型別,作為方法的返回型別等。 interface Shape { void draw(); } public class Main ...
確定! 回上一頁