No parameters or return value required

The functions named hello and goodbye in Listing 2 perform a simple action.

Each function simply displays a message on the screen when called.

These two functions don't require incoming parameters to accomplish their purpose, and they don't return a value.

The return type is declared to be void in both cases.