12 lines
294 B
Java
12 lines
294 B
Java
|
public class SmartWatch extends Watch {
|
||
|
private int batteryPercentage;
|
||
|
|
||
|
void setPercentage(int setPercentage) {
|
||
|
batteryPercentage = setPercentage;
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
void printItem() {
|
||
|
System.out.println(hours + ":" + mins + " " + batteryPercentage + "%");
|
||
|
}
|
||
|
}
|