From: Sean O'Dell Date: 2004-06-28T14:07:13+09:00 Subject: Re: Is it considered Harmful? On Sunday 27 June 2004 17:30, Patrick May wrote: > On Sunday, June 27, 2004, at 08:02 PM, Sean O'Dell wrote: > > Those variables will still exist; all that changes is the class that > > handles > > them. The original class still does all the initialization work. > > #class= > > changes the class of an existing object, so the old class has no more > > responsibility once it has been replaced. The class replacing it > > takes over > > all functionality. > > If an object of SomeClass becomes a Tempfile (or any other class with > significant internal state), which class is responsible for the > initialization work? The class that created the object should have already initialized it. Initialization is part of object creation, usually. Sean O'Dell