Visual Basic 2005 for Programmers: Deitel Developer Series, Second Edition
by Paul J. Deitel - Deitel & Associates, Inc., Harvey M. Deitel - Deitel & Associates, Inc.
7.21. Wrap-Up
In this chapter, you studied methods in greater depth. We distinguished between subroutines and functions, and when to use each type of method. You saw the difference between non-Shared and Shared methods and how to call Shared methods by preceding the method name with the name of the class in which it appears and a dot (.). We declared named constants using both enumerations and constant variables. You saw that arguments can be implicitly converted to the type of their corresponding parameters. We demonstrated using Option Strict, which causes the compiler to check all conversions and requires you to perform explicit conversion for all narrowing conversions that could cause data loss or program termination. We discussed how Visual ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access