package com.imooc; public class Initail { public static void main(String[] args) { // TODO Auto-generated method stub System.out.println("-----------"); /* jiaotong obj1 = new zixingche(); jiaotong obj2 = new houche(); jiaotong obj3 = new lunchuan(); jiaotong obj4 = new feiji(); jiaotong obj5 = new zixingche(); */ zixingche obj1 = new zixingche(); obj1.gongju(); obj1.zixingchea(); houche obj2 = new houche(); obj2.huochea(); obj2.gongju(); lunchuan obj3 = new lunchuan(); obj3.lunchuana(); obj3.gongju(); feiji obj4 = new feiji(); obj4.feijia(); obj4.gongju(); daba obj5 = new daba(); obj5.dabaa(); } } /*----------- 交通工具能载人,下面的交通工具能够载 自行车能运2人 火车能运500人 交通工具能载人,下面的交通工具能够载 轮船能运300人 交通工具能载人,下面的交通工具能够载 飞机能运180人 交通工具能载人,下面的交通工具能够载 大巴能载40人*/
囙憶式
2014-10-23
0 回答
举报
0/150
提交
取消