From: Scott Rubin Date: 2004-06-25T21:58:05+09:00 Subject: Re: Is it considered Harmful? I can't possibly imagine it being useful to do this except when the objects have very similar, if not identical, instance variables. And in cases where this is true we have these things we call polymorphism and inheritance. Lets say you have a parent class of animal with two subclasses cat and dog. But both cat and dog have the same data. Name, gender, breed, color, etc. There should never be a need to turn a cat into a dog or vice versa. If you are programming properly you would only deal in objects of type animal. If by some strange change a dog turned into a cat through genetic engineering you would simply make a new instance of object cat and copy the data from the former dog object into it. Then delete the dog object. It is only in this one case that I see your example being slightly useful, but only for code saving reasons. If someone else has more insight I would love to hear it. -Scott rolo wrote: > Hi > > obj.class = MyClass > > Is it harmful? > > rolo > > > >