Answer
objectRefVar.datafield
objectRefVar.method(args)
Work Step by Step
You can access the object’s data fields and invoke its methods by using the dot operator (.), also known as the object member access operator.
The syntax for using the dot operator is:
objectRefVar.datafield
objectRefVar.method(args)