IE 2060 Lecture : Lecture11 Ch06 Functions
Document Summary
Structuring of program code into independent task- oriented blocks of code that are only written once but can be called many times within your program. The same code can be reused many times. It structures your code so that it is easier to see where a specific task or set of tasks is being performed. By breaking down code into separate, independent pieces, it is easier for a team of programmers to work on the code in parallel and also to test the blocks of code independently. In c#. net, modular programming is implemented using functions and classes (the latter we will look at later in the semester). Functions are used to perform calculations and actions and often to return a value. Functions that are declared of return type void do not return values. In other programming languages these are known as subroutines. Function structures stand by themselves in a class; they are not put inside another function.