Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!elroy.jpl.nasa.gov!zardoz.cpd.com!dhw68k!emmayche From: emmayche@dhw68k.cts.com (Mark Hartman) Newsgroups: comp.sys.mac.programmer Subject: Re: Think C polymorphism problem Message-ID: <1991Mar17.054124.15913@dhw68k.cts.com> Date: 17 Mar 91 05:41:24 GMT References: <1991Mar6.233602.27014@ux1.cso.uiuc.edu> Organization: Wolfskill & Dowling residence; Anaheim, CA (USA) Lines: 20 dmmg1176@uxa.cso.uiuc.edu (David M Marcovitz) writes of a problem where a method in a superclass wants to call a method which is overridden by a subclass; however, the code which winds up getting run is the method that lives in the superclass. It would probably help if you would post the exact way that you are calling the method for which override is not working. However, I have never had any problem by using the form this->TheAuxMethod(); If you omit the "this->", THINK C believes that you're trying to call the method from the current class (see page 188; it's stated badly, but you have to read carefully). -- Mark Hartman, N6BMO "What are you just standing there for? Where Applelink: N1083 or BINARY.TREE do you think you are, DIS-ney World??" Internet: emmayche@dhw68k.cts.com -- General Knowledge, from uucp: ...{spsd,zardoz,felix}!dhw68k!emmayche CRANIUM COMMAND