If you're wanting to alter the behavior of individual instances then you may be interested in strategy pattern. You'd have different classes implementing the different behaviors and then your original objects would have a reference to (possibly singleton) instances of the corresponding strategy implementors as appropriate.
The cake is a lie.
The cake is a lie.
The cake is a lie.
In reply to Re: Altering the inheritance path of an object
by Fletch
in thread Altering the inheritance path of an object
by citromatik
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |