标签:
class Father { protected void methodA(){ //do something } private void methodB(){//do something } } class Child:Father { } 那么Child child=new Child(); child.methodA(); //Right child.methodB(); //Wrong
标签:
原文地址:http://www.cnblogs.com/mengfanrong/p/5093304.html