Chapter 6. Methods

Objects may have attributes in the form og methods. In the previous Chapters, we have seen examples of methods such as addPassenger, and removePassenger. Here we describe methods in more detail.

  • A general description of a method
  • Mention attributes and statements as for class
  • Parameters and return values
  • Invocation of methods