Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!husc6!think!ames!aurora!labrea!jade!saturn!jupiter.ucsc.edu!conrad From: conrad@jupiter.ucsc.edu.UUCP Newsgroups: comp.lang.c++ Subject: virtual constructors Message-ID: <895@saturn.ucsc.edu> Date: Fri, 25-Sep-87 18:40:09 EDT Article-I.D.: saturn.895 Posted: Fri Sep 25 18:40:09 1987 Date-Received: Tue, 29-Sep-87 02:47:54 EDT Sender: usenet@saturn.ucsc.edu Reply-To: conrad@jupiter.ucsc.edu (Al Conrad) Organization: University of California, Santa Cruz; CIS/CE Lines: 5 Keywords: constructors, derived Virtual constructors are not allowed. So if I need a a copy of a particular object which has derived classes, how do I do it? For example: rectangle, circle, line, etc. are derived classes of the base class *shape*. Now I want to make a copy of a given shape.