java_父類與子類 類型轉換問題

public class TestObjectConvert {java public static void main(String[] args) { test1(); test2();web } private static void test1() {app Fruit fruit1 = new Fruit(); Apple apple1 = new Apple(); appl
相關文章
相關標籤/搜索