Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Cars {
- private int speed;
- private String plate;
- private int location;
- public Cars() {
- }
- //Getters
- public int getSpeed() {
- return speed;
- }
- public String getPlate() {
- return plate;
- }
- public int getLocation() {
- return location;
- }
- //setters
- public void setSpeed(int speed) {
- this.speed = speed;
- }
- public void setPlate(String plate) {
- this.plate = plate;
- }
- public void setLocation(int location) {
- this.location = location;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement