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

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

return value  you finish the work you were asked to do and hand over what you did

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 10:

Does the length() method need a parameter?