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

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -