Advertisement
Guest User

Untitled

a guest
Dec 18th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.66 KB | None | 0 0
  1. public class Car{
  2.     private String car_id;
  3.     private String car_type;
  4.     private boolean isParked;
  5.    
  6.     public Car(String car_id, String car_type, boolean isParked){
  7.         this.car_id = car_id;
  8.         this.car_type = car_type;
  9.         this.isParked = isParked
  10.     }
  11.    
  12.     public void setCar_number(String car_id){
  13.         this.car_id = car_id;
  14.     }
  15.     public String getCar_number(){
  16.         return this.car_id;
  17.     }
  18.    
  19.     public void setCar_type(String car_type){
  20.         this.car_type = car_type
  21.     }
  22.     public String getCar_type(){
  23.         return this.car_type;
  24.     }
  25.    
  26.     public void setIsParked(boolean isParked){
  27.         this.isParked = isParked;
  28.     }
  29.     public boolean getIsParked(){
  30.         return this.isParked;
  31.     }
  32.    
  33.  
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement