-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathMoped.java
More file actions
73 lines (63 loc) · 1.05 KB
/
Moped.java
File metadata and controls
73 lines (63 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
package model;
/**
* Cameron Mockobee - cmockobee1@dmacc.edu
* CIS175 = - Fall 2023
* Aug 30, 2023
*/
public class Moped {
private String name = "Honda";
private int maxSpeed;
private String color;
public Moped() {
super();
}
/**
* @param name
* @param maxSpeed
* @param color
*/
public Moped(String name, int maxSpeed, String color) {
this.name = name;
this.maxSpeed = maxSpeed;
this.color = color;
}
/**
* @return the name
*/
public String getName() {
return name;
}
/**
* @param name the name to set
*/
public void setName(String name) {
this.name = name;
}
/**
* @return the maxSpeed
*/
public int getMaxSpeed() {
return maxSpeed;
}
/**
* @param maxSpeed the maxSpeed to set
*/
public void setMaxSpeed(int maxSpeed) {
this.maxSpeed = maxSpeed;
}
/**
* @return the color
*/
public String getColor() {
return color;
}
/**
* @param color the color to set
*/
public void setColor(String color) {
this.color = color;
}
public String makeNoise() {
return "Vroom Vroom";
}
}