Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!udel!rochester!rutgers!soleil!mlb.semi.harris.com!trantor.harris-atd.com!jedi!mvm From: mvm@jedi.harris-atd.com (Matt Mahoney) Newsgroups: comp.lang.c++ Subject: Re: Question regarding multiple inheritance and virtual functions.. Message-ID: <5945@trantor.harris-atd.com> Date: 28 Mar 91 20:00:28 GMT References: <10614@exodus.Eng.Sun.COM> Sender: news@trantor.harris-atd.com Reply-To: mvm@jedi.UUCP (Matt Mahoney) Organization: CAE Design Center, Harris Corp., Melbourne, Fl. Lines: 13 In article <10614@exodus.Eng.Sun.COM> mohans@caterina.Eng.Sun.COM (Ram Mohan Srinivasan) writes: >I do not seem to be able to get at the class employee's print virtual function >by > ((employee *) &emp)->print(); >instead, this calls the print() function of the class employee_pl_addr ! Try: emp.employee::print(); ------------------------------- Matt Mahoney, 407-727-5431, mvm@epg.harris.com #include // disclaimer.hpp in Zortech