title: how to extend method of the super class with custom content
body: <p>I am looking for the solution how extend method of the super class with custom content.</p>
  
  <p>for example I have a super class</p>
  
  <pre><code>class A{
  
    public  A(){
      boolean ok = doSomeInitialWork();
  
      if(ok){
          specialMehtod();
      }
    }
  
    specialMehtod(){
       System.out.print("HEllO");
    }
  }
  </code></pre>
  
  <p>so my class A does some "init" things and then calls specialMehtod(). Now I would like to have <code>class B extends A</code>  and add some other code to specialMehtod(). Something like:</p>
  
  <pre><code>Class B extends A{
  
      B(){
          super();
      }
  
      specialMehtod(){
         System.out.print("BBBBB");      
      }
  }
  </code></pre>
  
  <p>But if I do so, I call <code>a.SpecialMethod()</code> expizit, and actually I only want to "add" <code>System.out.print("BBBBB");</code> to specialMethod(), so that it still get called from constructor of A.</p>
  
  <p>What I want to achieve, is that finaly I could do in my main class</p>
  
  <p><code>new B();</code></p>
  
  <p>ant the output would be. 
  <code>HELLO
  BBBBB
  </code>
  because B() calls constructor of A(), which calls <code>A.specialMethod()</code> extended by B.specialMethod();</p>
  
  <p>Is it possible?</p>
  
  <p>Thanks</p>