July 2018
Intermediate to advanced
400 pages
12h 14m
English
Figure 4.3 shows the two primary parts of a function, the header and body, using formatHealthStatus as a model:
Figure 4.3 A function consists of a function header and a function body
The first part of a function is the function header. The function header is made up of five parts: the visibility modifier, function declaration keyword, function name, function parameters, and return type (Figure 4.4).
Figure 4.4 Anatomy of a function header
Let’s look at each of those ...