Chapter (3) - Procedures Questions
We can notice the declaration of the following : 1 ."Class" is under the name (Form1) 2"Variables" are under the names (total, i) 3-"Event procedures" are under the name of (Button1_Click, Button2_Click(
Here we declare what is so-called (Procedures); this declaration is done only once and then, you recall the procedures many times from anywhere in your program; which avoids code duplication in places where procedures are recalled.
Note: In the procedure declaration, we can use more than one Parameter. When the procedure is recalled, we determine values of the outside procedure called (Argument).
Declaration of Function SUM Calling of Function SUM