62,621
社区成员
发帖
与我相关
我的任务
分享
class Father
{
private int b = 1;
private void method1()
{
System.out.println("Father");
}
}
class Son extends Father
{
public static void main(String args [])
{
new Son().method1();
}
}
public int getB()
{
return this.b;
}