@@ -0,0 +1,1331 @@
+public class Bicycle %7B%0A        %0A    // the Bicycle class has three fields%0A    public int cadence;%0A    public int gear;%0A    public int speed;%0A        %0A    // the Bicycle class has one constructor%0A    public Bicycle(int startCadence, int startSpeed, int startGear) %7B%0A        gear = startGear;%0A        cadence = startCadence;%0A        speed = startSpeed;%0A    %7D%0A        %0A    // the Bicycle class has four methods%0A    public void setCadence(int newValue) %7B%0A        cadence = newValue;%0A    %7D%0A        %0A    public void setGear(int newValue) %7B%0A        gear = newValue;%0A    %7D%0A        %0A    public void applyBrake(int decrement) %7B%0A        speed -= decrement;%0A    %7D%0A        %0A    public void speedUp(int increment) %7B%0A        speed += increment;%0A    %7D%0A        %0A%7D%0A%0Apublic class MountainBike extends Bicycle %7B%0A        %0A    // the MountainBike subclass adds one field%0A    public int seatHeight;%0A%0A    // the MountainBike subclass has one constructor%0A    public MountainBike(int startHeight,%0A                        int startCadence,%0A                        int startSpeed,%0A                        int startGear) %7B%0A        super(startCadence, startSpeed, startGear);%0A        seatHeight = startHeight;%0A    %7D   %0A        %0A    // the MountainBike subclass adds one method%0A    public void setHeight(int newValue) %7B%0A        seatHeight = newValue;%0A    %7D   %0A%7D%0A

Create inheritance.java