No, code duplicating is the last thing you should do. Factorize code as often as possible. So use an abstract class.
Which language are you coding in? Some languages don't make it possible for a class to inherit more than one abstract class. There is no limitation to interface inheritance.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.