The paint() Method

The paint() method needs additional information to know what color we should use to paint with. The additional information this method needs is called a parameter. A parameter defines the type of value to receive when a method or constructor is called.

Calling the paint() Method

alice.paint("green");

An argument is the specific value provided when a method or constructor is called. We need to give a color we want to paint with. The value we give when we call the paint() method is a string literal, which is a sequence of characters enclosed in quotation marks ("").