multiple classes with same methods - best pattern

Posted by Tony on Stack Overflow See other posts from Stack Overflow or by Tony
Published on 2010-04-05T13:23:15Z Indexed on 2010/04/05 13:33 UTC
Read the original article Hit count: 246

I have a few classes in my current project where validation of Email/Website addresses is necessary. The methods to do that are all the same.

I wondered what's the best way to implement this, so I don't need to have these methods copy pasted everywhere?

The classes themselves are not necessarily related, they only have those validation methods in common.

© Stack Overflow or respective owner

Related posts about common

Related posts about functionality