title: What is difference to extend abstract class and non abstract class?
body: <p>What is difference between abstract class and non abstract class when extending derived classes? Both class I didn't use the method overriding and abstract methods (i.e. abstract class). Just I inherited the properties. What and why did prefer the class?</p>
  
  <p>Ex:</p>
  
  <p><strong>Code 1:</strong></p>
  
  <pre><code>abstract class a {  
      protected int empnno; 
      protected String empname; 
  } 
  
  class b extends a { 
      ...
  }
  </code></pre>
  
  <p><strong>Code 2:</strong></p>
  
  <pre><code>class a {  
      protected int empnno; 
      protected String empname; 
  }
  
  class b extends a { 
      ...
  }
  </code></pre>