[Tutor] Fwd: Instantiate a subClass using an instance of its baseClass

2006-02-13 Thread Kenny Li
Sorry, keep forgetting "reply-all"-- Forwarded message --From: Kenny Li <[EMAIL PROTECTED] >Date: Feb 13, 2006 11:00 AMSubject: Re: [Tutor] Instantiate a subClass using an instance of its baseClassTo: Kent Johnson <[EMAIL PROTECTED]> Yep! I think that is what I want. I did not know

[Tutor] Fwd: Instantiate a subClass using an instance of its baseClass

2006-02-13 Thread Kenny Li
Kent:   I forgot to mention that no coping is allowed. Your two options essentially are doing copying of the b. Furthermore, let's say, I don't even know the inside details of B, for example, I subclass the socket.socket, and I got a client socket after it accepting an incoming connection, and I