Using Objects: Calling an Object's Methods

Calling an Object's Methods

ObjectReference.methodName(argumentList);
ObjectReference.methodName();
  • You use an object reference to invoke an object's method.
  • You append the method's simple name to the object reference, with an intervening dot operator (.).
  • Provide, within enclosing parentheses, any arguments to the method. If the method does not require any arguments, use empty parentheses.

Related concepts

Using Objects: Calling an Object's Methods — Structure map

Clickable & Draggable!

Using Objects: Calling an Object's Methods — Related pages: