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
          主站蜘蛛池模板: 喀什市| 卫辉市| 朝阳市| 扬州市| 白河县| 翼城县| 绥化市| 开封县| 湘乡市| 高安市| 涡阳县| 开平市| 江门市| 涞水县| 仲巴县| 建德市| 大化| 淅川县| 东乡族自治县| 南阳市| 昭苏县| 原平市| 嘉祥县| 北京市| 邻水| 灵石县| 芦山县| 专栏| 沽源县| 新乡县| 耒阳市| 龙州县| 吉木萨尔县| 舟曲县| 玛纳斯县| 邢台县| 兴义市| 成都市| 新干县| 滨海县| 日土县|