in reply to Re^2: converting to a sub-class
in thread converting to a sub-class
The technique you're using is related to the Factory Pattern. It's quite an established idea.
Note that the hint to avoid hard-coding (parts of) the class name is good.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: converting to a sub-class
by Cagao (Monk) on Oct 20, 2007 at 17:47 UTC |