Afficher un message
Vieux 17/01/2008, 12h53   #2
anon
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Can i get the class of an object of which i only have the address?

bob the builder wrote:
> Can i get the class of an object of which i only have the address?
>
> Lets say i have 3 classes: AClass,BClass,CClass.
> i also have an object of each class: aObject, bObject, cObject
> And finally i have an integer: integerX.
>
> Now i let let intergerX be the address of one of the objects (aObject,
> bObject or cObject) but i dont know which.
> Can get the class of the object at the address contained in integerX?
> and how?


No, having only the address, you can not know type of the object at that
address.
  Réponse avec citation
 
Page generated in 0,05959 seconds with 9 queries