|
发表于 2008-7-7 08:55:55
|
显示全部楼层
那样的话用个 abstract class 不就好了么?- public interface IBase {
- public void Test();
- }
- public abstrace class Base implements IBase {
- public Base() { ... }
- public abstrace void Test();
- }
- public class Child extends Base {
- public Child() {
- super();
- ...
- }
- public void Test() { ... }
- }
复制代码 |
|