title: Abstract Methods don't have body?
body: <p>I am new to Java (reading books for 4 months now). So probably my question can appear too simple. My understanding is that abstract methods don't have a body and can't provide implementation</p>
  
  <p>So how does this works?</p>
  
  <pre><code>public abstract void fillRect (int x, int y, with, height);
  </code></pre>
  
  <p>I did't point the question clearly. We've got abstract method. Why does it draw a rectangle if I doesn't provide a body, just parameters.</p>
  
  <p>For example </p>
  
  <pre><code>public void paint (Graphics g) {
  
  g.fillRect (5, 5, 30, 30);
  
  }
  </code></pre>