i have a Web App coded in ABAP / BSP. I´m interested to deliver fine code so maybe you can help my recognize some good or bad pattern. Actually i do following. Declare a base class object and instantiate it dynamically based on some parameter with a sub class. The base class has some methods for data fetching () the sub classes use this data and maybe manipulate it.
Here some fast basic picture (sorry dont think its conform to any standard or language but should give you an idea)
alt text http://img35.imageshack.us/img35/4351/designkdp.jpg
Is somthing like this OK? Is there any known pattern hidden or should i refactor and use a pattern? I like to here some suggestions. I have already read the Wikipedia article but i dont see a pattern fit exactly. (Also ordered some books but you guys are sure faster 🙂 )
It seems a factory method