File tree Expand file tree Collapse file tree 3 files changed +21
-1
lines changed
Expand file tree Collapse file tree 3 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,13 @@ public int getYear() {
3636 return year ;
3737 }
3838
39+ /**
40+ * setYear changes Car's year
41+ */
42+ public void setYear (int year ) {
43+ this .year = year ;
44+ }
45+
3946 /**
4047 * getWheels returns the number of wheels
4148 */
Original file line number Diff line number Diff line change 66public interface Device {
77
88 /**
9- * getVoltage returns the current battery voltageS
9+ * getVoltage returns the current battery voltage
1010 */
1111 int getVoltage ();
1212}
Original file line number Diff line number Diff line change @@ -25,11 +25,24 @@ public String getColor() {
2525 return color ;
2626 }
2727
28+ /**
29+ * setColor changes the Vehicles color
30+ */
31+ public void setColor (String color ) {
32+ this .color = color ;
33+ }
34+
2835 /**
2936 * getModel returns the Vehicles model
3037 */
3138 public String getModel () {
3239 return model ;
3340 }
3441
42+ /**
43+ * setModel changes the Vehicles model
44+ */
45+ public void setModel (String model ) {
46+ this .model = model ;
47+ }
3548}
You can’t perform that action at this time.
0 commit comments