Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Car{
- private String car_id;
- private String car_type;
- private boolean isParked;
- public Car(String car_id, String car_type, boolean isParked){
- this.car_id = car_id;
- this.car_type = car_type;
- this.isParked = isParked
- }
- public void setCar_number(String car_id){
- this.car_id = car_id;
- }
- public String getCar_number(){
- return this.car_id;
- }
- public void setCar_type(String car_type){
- this.car_type = car_type
- }
- public String getCar_type(){
- return this.car_type;
- }
- public void setIsParked(boolean isParked){
- this.isParked = isParked;
- }
- public boolean getIsParked(){
- return this.isParked;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement