getClassForObject
getClassForObject(obj: Object): Class;
The getClassForObject method of the Object class returns a reference to the class of the object identifier (oid) specified in the obj parameter, even if this object is no longer valid.
If the object specified in the obj parameter is valid, the getClassForObject method returns the same reference as a call to the Object class class method (that is, obj.class).
This method is useful in exception handlers that may need to deal with object references that are no longer valid.