The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
1answer
40 views

Is it bad practice when an interface method implemented by a class does not use all its parameters?

Should an interface method implemented by a class always use all parameters? By interface I do not necessarily mean actual interfaces, these could be other (abstract) classes which are extended, too. ...
1
vote
0answers
38 views

Polymorphically handle result of subtraction

I have an amount class which provides the minus method among others. The result of this operation is of course another amount. The question is how can I handle the three cases according to the signum ...