Value-returning example
public String firstLastFormat()
{
return first + “ “ + last;
}
System.out.print(name.firstLastFormat());
object
method
object
method
Argument to
print
method is string returned from
firstLastFormat
method