How do you use the method of an object?

You also 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 (.) . Also, you provide, within enclosing parentheses, any arguments to the method. If the method does not require any arguments, use empty parentheses.

Read more