Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Bike extends Transport {
- private int gear;
- public Bike(int max_velocity,String color,int gear){
- super(max_velocity,color);
- this.gear=gear;
- }
- public int getGear() {
- return gear;
- }
- public void setGear(int gear) {
- this.gear = gear;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement