accessing super class in java
<p>Am I using the superclass correctly to access the <code>title</code>, <code>minutes</code> and <code>price</code>?</p>

<pre><code> public class Video extends CollectionItem
    {

      public Video(String title, 
          int minutes, double price) {

    super(title,minutes,price);

      }

      public String getTitle() {
        return super(title);
      }

      public int getMinutes() {
        return super(minutes);
      }

      public double getPrice() {
        return super(price);
      }

      public double pricePerMinute() {
        return 
            super(price)/super(minutes);
      }

}
</code></pre>

<p>here is my superclass can you check to make sure i did everything correctly i am very new to this and i did research i just thought that super() was the correct way</p>

<pre><code>Public class CollectionItem
{

  public String title;
    public int minutes;
    public double price;
    public int pages;


public Video(String title, 
      int minutes, double price) {

    this.title = title;
    this.minutes = minutes;
    this.price = price;
  }


public Book(String title, 
      int pages, double price) {

    this.title = title;
    this.pages = pages;
    this.price = price;
  }


public String getTitle() {
    return title;
  }

  public int getPages() {
    return pages;
  }

  public double getPrice() {
    return price;
  }

  public int getMinutes() {
    return minutes;
  }


}
</code></pre>
