Professional Documents
Culture Documents
Functions - Presentation
Functions - Presentation
Naming in General
■ Subroutines, subprograms, functions,
procedures and methods are all
basically the same thing
■ Subroutine and subprogram are
usually more general, with functions
returning values and procedures
producing side effects
■ Methods are functions or procedures
belonging to a class of objects like
the .format on strings.
Subprograms
Value returned
no “result”
Procedure is called twice