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.
|