Cela s'appelle de la programmation modulaire :
http://www.siteduzero.com/tutoriel-3-13993-la-programmation-modulaire.html