标签:event blog created code start java show cli string
/** * Created by qhong on 2017/2/5. */ public class Base { private String baseName = "base"; public Base() { callName(); } public void callName() { System. out. println(baseName); } static class Sub extends Base { private String baseName = "sub"; public void callName() { System. out. println (baseName) ; } } public static void main(String[] args) { Base b = new Sub(); } }
null
http://blog.csdn.net/Two_Water/article/details/53891952
标签:event blog created code start java show cli string
原文地址:http://www.cnblogs.com/hongdada/p/6368439.html