C# Design Pattern for 2 classes with same implementation but different base class -
take 2 base classes , b similar preferred distinct. each has sub class (a' , b') add same functionality , members respective classes. there design pattern allow me not have duplicate code in a' , b'?
i've looked @ bridge
, decorator
, can't see how these work.
thanks, rob
could use composition , refactor shared code class c?
Comments
Post a Comment