If the implementation of the method is common to all classes, perhaps abstract classbetter than interfacefor it.
If this is not the case, you will still write these methods.
(*) This was originally a comment, but I was asked to indicate it as an answer.
source
share