Advertisement
Guest User

task

a guest
Oct 15th, 2019
268
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.73 KB | None | 0 0
  1. package CarSalesMan;
  2.  
  3. public class Car {
  4.     public String getModel() {
  5.         return model;
  6.     }
  7.  
  8.     public void setModel(String model) {
  9.         this.model = model;
  10.     }
  11.  
  12.     public String getEngine() {
  13.         return engine;
  14.     }
  15.  
  16.     public void setEngine(String engine) {
  17.         this.engine = engine;
  18.     }
  19.  
  20.     public String getWeight() {
  21.         return weight;
  22.     }
  23.  
  24.     public void setWeight(String weight) {
  25.         this.weight = weight;
  26.     }
  27.  
  28.     public String getColor() {
  29.         return color;
  30.     }
  31.  
  32.     public void setColor(String color) {
  33.         this.color = color;
  34.     }
  35.  
  36.     private String model;
  37.     private String engine;
  38.     private String weight;
  39.     private String color;
  40.  
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement