overridding without subclassing examples
bradallenfuller at yahoo.com
Tue Sep 18 23:17:20 UTC 2007
On Tue September 18 2007, Chris Muller wrote:
> Avi's "Singletons" package might be what you're looking for..
Hmm... Is that anything like the Singleton pattern of having only one instance
of a class? That's not what I'm looking for. I want many instances.
> On 9/18/07, Brad Fuller <bradallenfuller at yahoo.com> 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?
More information about the Squeak-dev