Lecture 6
19
Method declarations
•
access
ReturnType methodName
(parameters)
•
{
•
// body - what to do when this object gets message
•
}
–
63 public
String getContents
() {…}
–
74 public
void append
(String text){…}
–
97 public
int getSize
() {…}
–