16 lines
279 B
Java
Raw Permalink Normal View History

2021-02-13 11:05:55 -05:00
public class Watch {
protected int hours;
protected int mins;
void setHours(int setHours) {
hours = setHours;
}
void setMins(int setMins) {
mins = setMins;
}
void printItem() {
System.out.println(hours + ":" + mins);
}
}