Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!snorkelwacker.mit.edu!bloom-beacon!eru!hagbard!sunic!mcsun!unido!gmdzi!jungblut From: jungblut@gmdzi.gmd.de (Achim Jungblut) Newsgroups: comp.lang.c++ Subject: Converting of Objects Message-ID: <4357@gmdzi.gmd.de> Date: 21 Mar 91 09:10:12 GMT Organization: GMD, St. Augustin, F.R. Germany Lines: 31 Hi out there. This is my first posting to this group, so don't be offended if i'm asking nonsense or something which is obvious to you. So here is my problem: Let X be a base class, A and B are derived classes. class X { // class X members }; class A : public X { // class A stuff }; class B : public X { // class B stuff // A-stuff and B-stuff are disjoint }; So here my Question: Is it possible to convert an A-instance to a B-instance (and vice versa) without creating the X-Part and coping the old X-Part into the new created ? Thanx in advance Gerd