From: Robert Klemme Date: 2004-10-01T16:35:00+09:00 Subject: Re: Calling super methods "Grzegorz Dostatni" schrieb im Newsbeitrag news:Pine.LNX.4.44.0409301255520.11306-100000@e5-05.ee.ualberta.ca... > > Is it possible to call a method of a superclass? Let's say I have a > instance of class Bar ( subclassed from Foo). > Both Foo and Bar define a function h() > > I want to call a.h() and have it go the Foo's implementation if it, > without going through the super() call (ie. do it from outside the > object). May I ask why you need that? IMHO it's no good OO design practice to explicitely select the method to invoke. Methods are overridden on purpose, so if you have a sub class instance the sub class method should be invoked. If you need special functionality that is present in the base class method, then this is typically an indication that it should be factored out of that method into a separate method. Regards robert