Functions and methods
In C++, this separate program module is called a function.
In Java and C#, it is usually called a method.