All objects respond to the message whatAmI by returning the name of their class as a string. All objects have a default way in which they print depending on their class. By default, an object will print its whatAmI value.
Many classes redefine the print message to display more specific information about the object.
The properties code and creationDate are defined for all objects. The code normally contains a string that identifies the object. The creationDate contains the date that the object was created. For example, instances of many of the built-in classes such as Number and String do not have these property values set. Although any method can initialize and reset these values, these properties are usually updated as part of the instance creation process .