June 2006
Intermediate to advanced
1344 pages
42h 52m
English
There are three ways to call a method:
Using a method name by itself to call another method of the same class or module—such as Maximum(number1, number2, number3) in line 56 of Fig. 7.4.
Using a variable that contains a reference to an object, followed by a dot (.) and the method name to call a method of the referenced object—such as the method call in line 10 of Fig. 7.5, gradeBook1.DisplayGradeReport(), which calls a method of class GradeBook from the Main method of module GradeBookTest.
Using the class or module name and a dot (.) to call a Shared method of a class or module (all methods of a module are implicitly Shared). One example of this is Math.Sqrt(900.0) in Section 7.5.
Note that a Shared method ...
Read now
Unlock full access