overridding without subclassing examples

Brad Fuller bradallenfuller at yahoo.com
Wed Sep 19 05:22:34 UTC 2007


On Tue September 18 2007, Brad Fuller wrote:
> Is there a way to override an instance method w/o subclassing?
> For instance, class Morph has a method that returns true, but I want the
> that method to return false when instancing some types of Morphs and others
> not. (there is no setter/getter for this method.) Is there a way to do that
> w/o adding a setter/getter to Morph or subclassing the different Morphs?

Thanks everyone, I think I have to go on for now.





More information about the Squeak-dev mailing list