나는 자바에서이 구조가있는 경우 :액세스
class A{
private string Name;
public string getName() {
return this.Name;
}
class B extends A{
private string Name;
public string getName(){
return this.Name;
}
}
나는 B 클래스의 객체를 생성하고 내가 상속 방법 getName()이 객체를 통해 액세스하려는. 어떻게해야합니까? A 메서드에서 getName() 메서드가 B 메서드로 재정의 되었습니까?