2021-03-10 15:30:40 -05:00

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 + "%");
}
}