Chapter 7 of [54] and Chapter 7 of [50] are recommended further readings on the subject of functions in C++. For further reading on methods in Java, the reader is referred to [23, pp. 155–182] and [2, pp. 36–57].