Erm . . . blech. Sounds almost like you're grasping at the Abstract Factory pattern, but not quite. You need to give more detail why the superclass needs to know how to create instances of descendants and then someone might catch what you're trying to do.
In reply to Re: sub classing best practice
by Fletch
in thread sub classing best practice
by cLive ;-)
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |