go to previous page   go to home page   hear noise   go to next page

Answer:

object        you
reference     your cell phone number
variable      piece of paper with your cell phone number written on it
method call   someone calls you and asks you to do something

Dot Notation

The various things an object contains—its variables and its methods—are called the members of that object. The members of an object are accessed using dot notation, which looks like this:

objectReference . memberName

Usually the objectReference is contained in a variable, but not always. If you want to run a method of the object, use the method name. If it needs parameters (values supplied to the method), they go inside ( ) like this:

objectReference . methodName( parameter )

Always use ( ) with a method name, even if it needs no parameters.

QUESTION 9:

Does the length() method need a parameter?