标签:style blog class code java ext
public class TestA { private String ta="我是类TestA"; public String fiall() {//System.out.println(this.ta);return ta; }}
public interface TestB { String ta = "我是接口TestB"; String tb = "我是接口interface"; public abstract String fiall(); }
public class Testinterface extends TestA implements TestB{ /** * @param args */ public static void main(String[] args) { System.out.println(new Testinterface().fiall()); System.out.println(ta); System.out.println(tb); } }
java 接口 继承 的有趣现象,布布扣,bubuko.com
标签:style blog class code java ext
原文地址:http://blog.csdn.net/cjava2008/article/details/25508819