title: Access to methods in base class in java
body: <p>If I have this structure in Java:</p>
  
  <pre><code>class A{
  private string Name;
  
  public string getName() {
      return this.Name;
  
  }
  
  
  class B extends A{
  private string Name;
  
  public string getName(){
      return this.Name;
  }
  
  }
  </code></pre>
  
  <p>I create an object of class B and I want to access through that object the inherited method getName(). How can I do this? Is the method getName() from A overridden by B method?</p>