From: Michael Perle Date: 2006-11-17T23:10:09+09:00 Subject: Re: Accessing base method... > Stefano Crocco wrote: > >>If you want to be able to call a base class's method after having >>overriden it, you should use alias_method. Soso Soso wrote (and Michael corrected the quoting): > Thanks Stefano, it works. But it puzzles me (coming from a C++/Java > background) why isn't there a more direct way to access an overriden > base class method. hmmm... > How do you do this in Java then? Are you sure that you really want to overwrite it and then use the parent one? Why did you overwrite it then? class Parent def knox puts 'parent' end end class Child < Parent def knox puts 'child' end def test Parent.new.knox end end But do not think that it contributes to the readability of the application to have 2 methods with the same name that do two different things at all. So perhaps I would go for: class Parent def knox_parent puts 'parent' end end class Child < Parent def knox_child puts 'child' end def test knox_parent() end end MP