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