java多態的應用案例(以汽車租賃爲例)

package TestRent; import java.util.Scanner; /** * 計算汽車租賃的總租金。 */ public class TestRent { public static void main(String[] args) { int days;// 租賃天數 int totalRent;// 總租賃費用 MotoV
相關文章
相關標籤/搜索