Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.ArrayList;
- public class Car {
- private String model;
- private int engine;
- private int hp;
- private int cargoW;
- private String typeCargo;
- private ArrayList<Tyre>tires;
- public Car(String model, int engine, int hp, int cargoW, String typeCargoe,ArrayList<Tyre>tires) {
- this.model = model;
- this.engine = engine;
- this.hp = hp;
- this.cargoW = cargoW;
- this.typeCargo = typeCargo;
- this.tires=tires;
- }
- public ArrayList<Tyre> getTires() {
- return tires;
- }
- public void setTires(ArrayList<Tyre> tires) {
- this.tires = tires;
- }
- public String getModel() {
- return model;
- }
- public void setModel(String model) {
- this.model = model;
- }
- public int getEngine() {
- return engine;
- }
- public void setEngine(int engine) {
- this.engine = engine;
- }
- public int getHp() {
- return hp;
- }
- public void setHp(int hp) {
- this.hp = hp;
- }
- public int getCargoW() {
- return cargoW;
- }
- public void setCargoW(int cargoW) {
- this.cargoW = cargoW;
- }
- public String getTypeCargo() {
- return typeCargo;
- }
- public void setTypeCargo(String typeCargo) {
- this.typeCargo = typeCargo;
- }
- }
Add Comment
Please, Sign In to add comment