posts - 58,  comments - 45,  trackbacks - 0

          ?

          public ? class ?Student {
          ????Student(String?name)
          {
          ????????
          this .name = name;
          ????}

          ????
          boolean ?hasPassedCET4() {
          ????????
          //
          ????}

          ????????
          ????
          boolean ?gotEnoughCredits() {
          ????????
          //
          ????}


          ????
          private ?age;
          ????
          private ?name;
          }


          class ?GraduateStudent? extends ?Student {
          ????
          boolean ?completedGraduateThesis() {
          ????????
          // ???
          ????}

          ????Photo?getPhoto()
          {
          ????????
          //
          ????}

          ????
          boolean ?healthCheckUp() {
          ????????
          //
          ????}

          ????
          void ?stay() {
          ????????
          //
          ????}

          ????
          void ?leaveSchool() {}
          ????
          void ?enterAnotherSchool() {}
          ????
          ????
          public ? static ? void ?main(Sting[]?args) {
          ????????Student?me
          = new ?GraduateStudent( " syl " );
          ????????
          if (me.hasPassCET4()
          ???????????
          && ?me.gotEnoughCredits()
          ???????????
          && ?me.completedGraduateThesis()) {
          ????????????me.getPhoto();
          ????????????
          if ?(me.healthCheckUp()) {
          ???????????????me.leaveSchool();
          ???????????????me.enterAnotherSchool();
          ????????????}
          else {
          ???????????????me.leaveSchool();
          ???????????????me.gotoHospital();
          ???????????????
          while ( ! me.healthCheckUp())
          ???????????????????
          {}
          ???????????????me.enterAnotherSchool();
          ????????????}

          ????????}
          else {
          ?????????????me.stay();
          ????????}

          ????}

          }


          posted on 2006-05-21 14:17 gosyl 閱讀(308) 評論(0)  編輯  收藏 所屬分類: j2se
          主站蜘蛛池模板: 体育| 阳城县| 布尔津县| 广平县| 礼泉县| 西乌珠穆沁旗| 镇赉县| 北流市| 华池县| 皋兰县| 阿克苏市| 元谋县| 全南县| 土默特右旗| 青冈县| 彩票| 肇庆市| 开鲁县| 城口县| 油尖旺区| 社旗县| 汉阴县| 海伦市| 万安县| 北海市| 萨迦县| 工布江达县| 安新县| 宜章县| 新乡县| 台山市| 玉溪市| 广州市| 云浮市| 万州区| 镇平县| 大丰市| 黔西| 抚宁县| 汉阴县| 汝城县|