Path: utzoo!attcan!uunet!cs.utexas.edu!csd4.milw.wisc.edu!mailrus!cwjcc!gatech!bloom-beacon!primerd!zaphod!doug From: doug@zaphod.prime.com Newsgroups: comp.lang.c++ Subject: Calling super methods Message-ID: <26200002@zaphod> Date: 9 Aug 89 18:41:00 GMT Lines: 35 Nf-ID: #N:zaphod:26200002:000:685 Nf-From: zaphod.prime.com!doug Aug 9 14:41:00 1989 This is either a dumb question or a complaint. If one has a derived class then it is not uncommon to want to combine methods with a parent class. So: class base { int i; virtual int op(); }; class derived : base { int j; virtual int op(); }; int base::op() { i++; } int derived::op() { j++; // I want to call base::op here. Do I have to explicitly // call: base::op(); // ?? } ------------------------------------------------------------------------------- Douglas Rand Internet: doug@primerd.prime.com Snail: Prime Computer, 500 Old Conn Path, MS10C-17, Framingham, Ma 01701 Disclaimer: PRIME doesn't believe a word I say, and fewer that I write.