title: methods after extending abstract class
body: <p>I don't know exacly how to describe my problem so I'll make an example:</p>
  
  <pre><code>public abstract class A {
  
    public abstract void methodToOverride();
    public void methodNotToOverride() { }
  
  }
  
  public class B extends A {
  
    @Override
    public void methodToOverride() { }
    public void someOtherMethodNotFromClassA() { }
  
  }
  </code></pre>
  
  <p>now I need to do such thing in my code:</p>
  
  <pre><code>A object = new B();
  object.someOtherMethodNotFromClassA();
  </code></pre>
  
  <p>but I get "Cannot resolve method error". Defining such method in the abstract class is not an option. Any clue?</p>