161 reputation
2
bio website
location
age
visits member for 2 years, 4 months
seen Mar 1 at 12:29

Jan
16
awarded  Supporter
Dec
24
comment Understanding the bridge design pattern
Thanks for the feedback, you are right. It was years ago that I posted this, and reviewing it now I would say it describes bridge well until the last bit where I derived Win32TextboxPainter and Win32ListPainter from Win32WidgetPainter. You can have an inheritance tree on the implementation side, but it should be more generic (perhaps StaticStyleControlPainter, EditStyleControlPainter, and ButtonStyleControlPainter) with any needed primitive operations overridden as needed. This is closer to the real code I was basing the example on.
Nov
23
awarded  Teacher
Nov
22
answered Understanding the bridge design pattern