• 大小: 242.96 KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 标签: thingking  in  java  

资源简介

一本讲述java 的

资源截图

代码片段和文件信息

// interfaces/Adventure12.java
// TIJ4 Chapter Interfaces Exercise 12 page 328
/* In Adventure.java add an interface called CanClimb following
* the form of the other interfaces.
*/

interface CanFight {
void fight();
}

interface CanSwim {
void swim();
}

interface CanFly {
void fly();
}

interface CanClimb {
void climb();
}

class ActionCharacter {
public void fight() {}
}

class Hero extends ActionCharacter 
implements CanFight CanSwim CanFly {
public void swim() {}
public void fly() {}
}

public class Adventure12 {
public static void t(CanFight x) { x.fight(); }
public static void u(CanSwim x) { x.swim(); }
public static void v(CanFly x) { x.fly(); }
public static void c(CanClimb x) { x.climb(); }
public static void w(ActionCha

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2008-12-20 23:19  Thinking In Java 4 Exercise\
     目录           0  2008-12-20 23:17  Thinking In Java 4 Exercise\10Innerclasses\
     文件        1078  2008-12-19 17:15  Thinking In Java 4 Exercise\10Innerclasses\Adventure12.java
     文件        1575  2008-12-19 17:15  Thinking In Java 4 Exercise\10Innerclasses\Cycles(1).java
     文件         576  2008-12-19 17:15  Thinking In Java 4 Exercise\10Innerclasses\Ex10(1).java
     文件         800  2008-12-19 17:15  Thinking In Java 4 Exercise\10Innerclasses\Ex11.java
     文件         689  2008-12-19 17:15  Thinking In Java 4 Exercise\10Innerclasses\Ex15(1).java
     文件         555  2008-12-19 17:15  Thinking In Java 4 Exercise\10Innerclasses\Ex18.java
     文件        1223  2008-12-19 17:15  Thinking In Java 4 Exercise\10Innerclasses\Ex19.java
     文件         486  2008-12-19 17:15  Thinking In Java 4 Exercise\10Innerclasses\Ex20.java
     文件         691  2008-12-19 17:15  Thinking In Java 4 Exercise\10Innerclasses\Ex21.java
     文件        1733  2008-12-19 17:15  Thinking In Java 4 Exercise\10Innerclasses\Ex23.java
     文件        1076  2008-12-19 17:15  Thinking In Java 4 Exercise\10Innerclasses\Ex6.java
     文件         585  2008-12-19 17:15  Thinking In Java 4 Exercise\10Innerclasses\Ex9.java
     文件        1391  2008-12-19 17:15  Thinking In Java 4 Exercise\10Innerclasses\Games17.java
     文件        2304  2008-12-19 17:15  Thinking In Java 4 Exercise\10Innerclasses\GreenhouseController24.java
     文件        1146  2008-12-19 17:15  Thinking In Java 4 Exercise\10Innerclasses\GreenhouseController25.java
     文件        3719  2008-12-19 17:15  Thinking In Java 4 Exercise\10Innerclasses\GreenhouseControls24.java
     文件        1179  2008-12-19 17:15  Thinking In Java 4 Exercise\10Innerclasses\GreenhouseControls25.java
     文件        1701  2008-12-19 17:15  Thinking In Java 4 Exercise\10Innerclasses\HorrorShow14.java
     文件         511  2008-12-19 17:15  Thinking In Java 4 Exercise\10Innerclasses\OtherOuter.java
     文件         641  2008-12-19 17:15  Thinking In Java 4 Exercise\10Innerclasses\Outer1.java
     文件         959  2008-12-19 17:15  Thinking In Java 4 Exercise\10Innerclasses\Outer12.java
     文件         652  2008-12-19 17:15  Thinking In Java 4 Exercise\10Innerclasses\Outer13.java
     文件         729  2008-12-19 17:15  Thinking In Java 4 Exercise\10Innerclasses\Outer3.java
     文件         829  2008-12-19 17:15  Thinking In Java 4 Exercise\10Innerclasses\Outer7.java
     文件         734  2008-12-19 17:15  Thinking In Java 4 Exercise\10Innerclasses\Outer8.java
     文件         810  2008-12-19 17:15  Thinking In Java 4 Exercise\10Innerclasses\SecondOuter.java
     文件        1645  2008-12-19 17:15  Thinking In Java 4 Exercise\10Innerclasses\Sequence2.java
     文件        1415  2008-12-19 17:15  Thinking In Java 4 Exercise\10Innerclasses\Sequence4.java
     目录           0  2008-12-20 23:17  Thinking In Java 4 Exercise\11.Holding\
............此处省略342个文件信息

评论

共有 条评论