Guest User

task

a guest
Oct 15th, 2019
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.79 KB | None | 0 0
  1. package CarSalesMan;
  2.  
  3. public class Engine {
  4.     public String getModel() {
  5.         return model;
  6.     }
  7.  
  8.     public void setModel(String model) {
  9.         this.model = model;
  10.     }
  11.  
  12.     public int getPower() {
  13.         return power;
  14.     }
  15.  
  16.     public void setPower(int power) {
  17.         this.power = power;
  18.     }
  19.  
  20.     public String getDisplacement() {
  21.         return displacement;
  22.     }
  23.  
  24.     public void setDisplacement(String displacement) {
  25.         this.displacement = displacement;
  26.     }
  27.  
  28.     public String getEfficiency() {
  29.         return efficiency;
  30.     }
  31.  
  32.     public void setEfficiency(String efficiency) {
  33.         this.efficiency = efficiency;
  34.     }
  35.  
  36.     private String model;
  37.     private int power;
  38.     private String displacement;
  39.     private String efficiency;
  40. }
Add Comment
Please, Sign In to add comment