title: Accesing private variable from abstract class with access method as abstract
body: <p>Let's say I have a class called book that is abstract, has a private variable price, and also has it's getter method as abstract.</p>
  <pre class="lang-java prettyprint-override"><code>    public abstract class Book{
  
          private double price;
  
          public abstract double getPrice();
  
      }
  </code></pre>
  <p>Now let's say I have a used Book class that inherits all of Book's attributes, but also has an age associated with it. Also I want this class to override the getPrice method from it's parent class. This is where I get stuck since the price variable is private, and the parent class has an abstract getter method.</p>
  <pre class="lang-java prettyprint-override"><code>    public class UsedBook extends Book{
  
          private int age;
  
          //constructor
          public UsedBook(){
              age = 1;
          }
  
          @Override
          public double getPrice(){
              //How can I implement this method so as a user I can access the price?
          }
  
      }
  </code></pre>
  <p>Thank You</p>