title: Java get child method from parent class
body: <p>I have a few java classes that extend a parent class. From the parent class, I'm looking to call a couple methods from the child class. Does anybody know how to do this? Thanks</p>
  
  <p>Example. </p>
  
  <pre><code>@MappedSuperclass
  public class LookupBaseEntity {
  
      private List&lt;VehicleConfiguration&gt; vehicleConfigurations;
  
      public VehicleConfiguration getVehicleConfiguration() {
          return vehicleConfiguration;
      }
  
      public void setVehicleConfigurations(List&lt;VehicleConfiguration&gt; vehicleConfigurations) {
          this.vehicleConfigurations = vehicleConfigurations;
      }
  
  }
  </code></pre>
  
  <p>child class</p>
  
  <pre><code>@Entity
  public class VehicleYear extends LookupBaseEntity {
  
      @OneToMany(mappedBy = "vehicleYear")
      private List&lt;VehicleConfiguration&gt; vehicleConfigurations;
  
      public VehicleYear() {
      }
  
      public List&lt;VehicleConfiguration&gt; getVehicleConfigurations() {
          return vehicleConfigurations;
      } 
  
      public void setVehicleConfigurations(List&lt;VehicleConfiguration&gt; vehicleConfigurations) {
          this.vehicleConfigurations = vehicleConfigurations;
      }   
  
  }
  </code></pre>