[Newbies] Overriding methods

Bert Freudenberg bert at freudenbergs.de
Sun Jan 20 15:50:57 UTC 2008


On Jan 20, 2008, at 4:45 , Blake wrote:

> For example, if I want to set up the "contractless" part of my  
> object, I do so by overriding #basicNew, and then setting the  
> values that allow the instance of the object to function.


Isn't that what #initialize is for?

> Maybe I should be overriding #new instead of #basicNew, but I get  
> the same dire warning for #new).

There should be no warning for #new. It's perfectly fine to override it.

- Bert -




More information about the Beginners mailing list