Specifications

Sun Services
Java™ Programming Language
Module 2, slide 11 of 26
Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. Sun Services, Revision F
Accessing Object Members
The dot notation is:
<object>.<member>
This is used to access object members, including
attributes and methods.
Examples of dot notation are:
d.setWeight(42);
d.weight = 42; // only permissible if weight is public