Chapter 15. Methods

In Chapter 13, “Objects and Classes—Introduction to Object-Oriented Programming,” you saw briefly what a class method is. In this chapter you are going to learn more about class methods. The chapter is structured in the following topics:

We will start by formally defining the syntax of a method and give some examples to illustrate different types of methods. Next you will look in more detail at method overloading—what it is and how and when can you use it. This will include some examples, hints, and good practices of method overloading. We will conclude the chapter with a few examples that illustrate the concepts you learned and how to use them efficiently, as well as how ...

Get Visual Basic® .NET by Example 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.