Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!mips!dimacs.rutgers.edu!rutgers!maverick.ksu.ksu.edu!iowasp.physics.uiowa.edu!ns-mx!ccad.uiowa.edu!cadsi From: cadsi@ccad.uiowa.edu (CADSI) Newsgroups: comp.lang.c++ Subject: Re: Calling Parent functions in Child??? Message-ID: <1991May14.150727.15517@ccad.uiowa.edu> Date: 14 May 91 15:07:27 GMT References: <91132.113932ACPS2924@Ryerson.Ca> Organization: CAD-Research, U. of Iowa, Iowa City, Iowa Lines: 26 From article <91132.113932ACPS2924@Ryerson.Ca>, by ACPS2924@Ryerson.Ca: > If one has the following situation : > > class A { int isEqual{}; } > > class B : public A { int isEqual{} } > > > B::isEqual() > { > return (... && // here i want to call the parents isEqual > // how do i do it?? > > } > > > I want to call the parents matching call inside the childs call. > In smalltalk you use super how is it done in C++. A::isEqual(); |----------------------------------------------------------------------------| |Tom Hite | The views expressed by me | |Manager, Product development | are mine, not necessarily | |CADSI (Computer Aided Design Software Inc. | the views of CADSI. | |----------------------------------------------------------------------------|