私有方法只能被重载不能被继承
2016-03-21 17:16 我就是wade 阅读(880) 评论(0) 编辑 收藏 举报public class test { private void p1(){ System.out.println("p1------"); } private void p1(String aa){ System.out.println("p1------"+aa); } public static void main(String[] args) { // TODO Auto-generated method stub test t =new test(); t.p1(); t.p1("444"); } }