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 ...

Get Visual Basic 2005 for Programmers: Deitel Developer Series, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.