school/in-class-10-FEB-2021/SmartWatch.java

12 lines
294 B
Java
Raw Normal View History

2021-02-13 11:05:55 -05:00
public class SmartWatch extends Watch {
private int batteryPercentage;
void setPercentage(int setPercentage) {
batteryPercentage = setPercentage;
}
@Override
void printItem() {
System.out.println(hours + ":" + mins + " " + batteryPercentage + "%");
}
}