一個 class 被設計好了﹐要 compile (孕育) 成功 (出世) 才有用。如 compiler (母體) 有問題﹐又或 version (年份) 不一樣﹐則會影響 final implementation 的素質﹐有 bug 就當然有缺陷了。
試做軟體 (人體) 設計~~
interface Planet { } interface Continent { } interface Country { } interface Environment { } interface Mother { } interface Father { } abstract class LifeChartPattern_001 { } abstract class LifeChartPattern_002 { } abstract class LifeChartPattern_003 { } ... ... abstract class LifeChartPattern_098 { } abstract class LifeChartPattern_099 { } abstract class LifeChartPattern_100 { }
public class Lincoln (命主) extends LifeChartPattern_001 (abstract class) implements Mother, Father (父母) { public Lincoln() (大環境設定) { setPlanet("Earth"); setContinent("North America"); setCountry("United States of America"); setEnvironment("Democratic, Capitalism, 2004"); } }
哈哈~~ 有趣有趣~~
最近回文 1篇 (由新而舊)
Robert
發表於 - 09/26/2004 : 8:45:11 PM 雙胞胎~~
abstract class Twins extends LifeChartPattern_088 implements Mother, Father { public Twins() { setPlanet("Earth"); setContinent("North America"); setCountry("United States of America"); setEnvironment("Democratic, Capitalism, 2004"); } }
public class Lincoln extends Twins { } public class Clinton extends Twins { }