title: Is there any way to omit a variable from super class?
body: <p>My application class uses a library that has default two variables in it.</p>
  
  <pre><code>   // A class from framework:
  
  public class SuperClass implements Serializable {
  
    private long id;
    private long version;
  
    // getter and setter methods for these variables...
  
  }
  </code></pre>
  
  <p>I should extend this class, in order to access some of the functionality of the framework.</p>
  
  <p>If I extend this class to my own class like this:</p>
  
  <pre><code>public class MyClassChild extends SuperClass {
  
    private long myprimarykey;
    private String some column;
    private long myversion;
  
    // getter and setter methods for these variables...
  
  }
  </code></pre>
  
  <p>As per the programming model, those two variables are also accessible.
  While implementing operation that requires an Object of type <code>SuperClass</code>.</p>
  
  <p>Is there any idea to extend that SuperClass which is not including those two variables <code>(id, version)</code> ?</p>
  
  <p>I do not know what to do?</p>
  
  <p>Any suggestions pls? </p>
  
  <p>Thanks</p>