Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public abstract class Vehicle{
- public int getNumberOfTires() {
- return numberOfTires;
- }
- public int getId() {
- return id;
- }
- public void setId(int id) {
- this.id = id;
- }
- private int id;
- public double getHighestBid() {
- return highestBid;
- }
- public void setHighestBid(double highestBid) {
- this.highestBid = highestBid;
- }
- private double highestBid;
- public void setNumberOfTires(int numberOfTires) {
- this.numberOfTires = numberOfTires;
- }
- public VehicleTypeEnum getvType() {
- return vType;
- }
- public void setvType(VehicleTypeEnum vType) {
- this.vType = vType;
- }
- public int getNumberOfPassangers() {
- return numberOfPassangers;
- }
- public void setNumberOfPassangers(int numberOfPassangers) {
- this.numberOfPassangers = numberOfPassangers;
- }
- private int numberOfTires;
- private VehicleTypeEnum vType;
- public String getColor() {
- return color;
- }
- public void setColor(String color) {
- this.color = color;
- }
- private String color;
- public double getPrice() {
- return price;
- }
- public void setPrice(double price) {
- this.price = price;
- }
- private double price;
- public String getModel() {
- return model;
- }
- public void setModel(String model) {
- this.model = model;
- }
- public String getBrand() {
- return brand;
- }
- public void setBrand(String brand) {
- this.brand = brand;
- }
- public int getNumberOfGears() {
- return numberOfGears;
- }
- public void setNumberOfGears(int numberOfGears) {
- this.numberOfGears = numberOfGears;
- }
- public int getHorsePower() {
- return horsePower;
- }
- public void setHorsePower(int horsePower) {
- this.horsePower = horsePower;
- }
- public String getType() {
- return type;
- }
- public void setType(String type) {
- this.type = type;
- }
- public double getFuelConsumption() {
- return fuelConsumption;
- }
- public void setFuelConsumption(double fuelConsumption) {
- this.fuelConsumption = fuelConsumption;
- }
- private String model;
- private String brand;
- private int numberOfGears;
- private int horsePower;
- private String type;
- private double fuelConsumption;
- private int numberOfPassangers;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement