On 4/10/06, Tom Allison <tallison / tacocat.net> wrote:
>
> Just a point of clarification.
>
> When I call
> Obj.new()
>
> I actually call the
> clall Obj
>   def initialize()
>   end
> end
>
> so there is an implied connection between new() and initialize()?
>
> Historically is there some reason why we didn't just stick with the
> 'def new()'
> or did I miss something.

"new" allocates space for the new object and creates it. It then calls
"initialize" to initialize the newly created object. Typically that's
that only part you want to customize which is why you write an
"initialize" method instead of a "new" method.

--
R. Mark Volkmann
Object Computing, Inc.