Object Class
The Object class is the base class from which all other classes are derived.
Syntax
class Object
Run On
Called
Methods
Method | Description | |
---|---|---|
cancelTimeOut | Cancels a previous method call to the setTimeOut method. | |
equal | Determines whether the specified object is equal to the current one. | |
getTimeOutTimerHandle | Returns the timer handle for the object. | |
handle | Retrieves the handle of the class of the object. | |
new | Initializes a new instance of the Object class. | |
notify | Releases the hold on an object that has called the wait method on this object. | |
notifyAll | Releases a lock on the object that was issued by the wait method on this object. | |
objectOnServer | Determines whether the object is on a server. | |
owner | Returns the instance that owns the object. | |
setTimeOut | Sets up the scheduled execution of a specified method. | |
toString | Returns a string that represents the current object. | |
usageCount | Returns the current number of references, that is, the value of the reference counter, that the object has. | |
wait | Pauses a process. | |
xml | Returns an XML string that represents the current object. |
Top
Remarks
Methods in the Object class can be called for any object.
The Object class is used to allow assignment and equality checks to be performed without the developer having to know the actual type of the object.
The methods can be grouped into three groups:
Time out methods - can be used to activate a method after a specified period of time has passed.
Process methods, such as the Wait, Notify, and NotifyAll method - used to control process flow and to wait for another object to finish its task.
Class methods - return basic information about the object.
Inheritance Hierarchy
Object Class