First inheritance-based app online
This has been a great week with great latenight coding sessions, which began with last Friday's session where I began working with System.Reflection and inheritance. The app resulting from those latenight sessions (and some bonafide daytime work hours as well) is online and swingin'.
What brought me to inheritance was an asp.net app consisting of 5 rather detailed usercontrols which needed to be duplicated to support a different backend and slightly different functionality. The page controls consisted of a heading title bar with 5 menu options displaying administrative forms on the page to manipulate data in other page controls. I swore to myself I was not going to go the straight cut-n-paste route when I had seen too many great sessions on inheritance in Julie's Vermont DotNet Users Group by guys like Chris Kinsman and Carl Franklin.
Now I'm coco for cocoa puffs and hooked on inheritance! The original app and its 5 usercontrols all served as base classes to those of the modified, inherited app. I've got specific observations and a number of questions, but here I simply wanted to post an image of two classes side by side. At left is the inherited class where the only code requiring modification was the Page_Load method. At right is the class from the original application serving as the base class. To me this is an effective depiction of the benefits of inheritance, for sure.