Similar Posts

Subscribe
Notify of
6 Answers
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
regex9
1 year ago

Perhaps the method should ensure that the person is always two years older. Otherwise, it makes no sense.

Talk to the author of the code, what he thought. When I get isBirthday– Watching method also doesn’t make sense, because it doesn’t check anything (as the method name suggests), but sets the age.

regex9
1 year ago
Reply to  YaHobby

Yes, so the method is incorrectly named.

Destranix
1 year ago

Don’t make sense. And “isBirthday” doesn’t make any sense.

Destranix
1 year ago
Reply to  YaHobby

Of course, it could be that the name was simply stupid.