... initialized, only the constructor that the class’s other constructors call will need to be modified.
Lines 16–18 declare a Time2
constructor with a single int
parameter representing the hour
, which is passed with 0 for the minute
and second
to the constructor at lines 26–42. Lines 21–23 declare a Time2
constructor that receives two int
parameters representing the ...
Get Java How to Program, Early Objects, 11th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.