title: Creating a subclass from an abstract class in Java
body: <p>Currently learning about Java and I have a question about making a subclass from an abstract class. I have this:</p>
  
  <pre><code>public abstract class Bike
  {
    private int cost;
  
    public Bike(){}
  
    public abstract void displayCost();
  }
  
  
  public class SportsBike extends Bike
  {
    private int topSpeed();
  
    ???
  }
  
  public class CasualBike extends Bike
      {
        private int brakeSpeed();
  
        ???
      }
  
  
   public void main()
  {
    SportsBike b1 = new SportsBike(???);
    CasualBike b2 = new CasualBike(???);
  }
  </code></pre>
  
  <p>How would I have the constructor for both sportsBike and casualBike so that they would have their own information?? I have read things about @super and such but I am not sure how to implement it. Would @override work if I have multiple class inheriting one class?</p>