Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!wuarchive!m.cs.uiuc.edu!ibma0.cs.uiuc.edu!ux1.cso.uiuc.edu!uxa.cso.uiuc.edu!dmmg1176 From: dmmg1176@uxa.cso.uiuc.edu (David M Marcovitz) Newsgroups: comp.sys.mac.programmer Subject: Re: Think C polymorphism problem Message-ID: <1991Mar7.191732.2404@ux1.cso.uiuc.edu> Date: 7 Mar 91 19:17:32 GMT References: <1991Mar6.233602.27014@ux1.cso.uiuc.edu> Sender: usenet@ux1.cso.uiuc.edu (News) Organization: University of Illinois at Urbana Lines: 21 dmmg1176@uxa.cso.uiuc.edu (David M Marcovitz) writes: >I am using Think C 4.0 with TCL. I have a superclass CFoo with >subclasses CBar and CBaz. CFoo has the following methods: >I thought that by calling TheAuxMethod, the correct TheAuxMethod (from >the subclass, CBar or CBaz) would run. That is not happening. The >CFoo TheAuxMethod is getting called; it is not being overriden. >How can I call TheAuxMethod from one of CFoo's methods and have it be >overridden by CBar or CBaz's TheAuxMethod? Sorry, it was my fault. My superclass methods had slightly different names than my subclass methods. I changed the names, and it works now. Thanks to those who responded. -- David M. Marcovitz | internet: marcovitz@uiuc.edu Computer-based Education Research Lab | dmmg1176@uxa.cso.uiuc.edu University of Illinois | novanet: marco / cca / cerl