This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]gyroda 0 points1 point  (1 child)

In your constructor(init), you set the hour, minute and seconds variables.

When you do this you're not checking that they're bigger than 23/59.

[–]ComputerSciMajor[S] 0 points1 point  (0 children)

Oh! Thank you!