Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!helios!diamond!jdm5548 From: jdm5548@diamond.tamu.edu (James Darrell McCauley) Newsgroups: comp.lang.c++ Subject: Beginner question: virtual funcs in constructors Keywords: virtual, class, inheritance Message-ID: <11630@helios.TAMU.EDU> Date: 30 Jan 91 20:40:30 GMT Sender: usenet@helios.TAMU.EDU Reply-To: jdm5548@diamond.tamu.edu (James Darrell McCauley) Followup-To: submitter Distribution: usa Organization: Texas A&M University Agricultural Engineering Department Lines: 12 Could someone help with my basic understanding of things? Inside a class constructor, I use a virtual function. In a derived class, I overload this function, but upon instantiation of the derived class, the overloaded function is not used. Not what I expected. Should I avoid using virtual member functions in class constructors? -- James Darrell McCauley (jdm5548@diamond.tamu.edu, jdm5548@tamagen.bitnet) Agricultural Visualization Lab, Department of Agricultural Engineering, Texas A&M University, College Station, Texas 77843-2117, USA