Summary

Classes are different in Visual Basic .NET than in VB6. VB6 classes are now interfaces and literally use the interface keyword. Visual Basic .NET classes use the Class keyword and support inheritance, something not found in VB6. Chapter 7 is a precursor to these more advanced subjects.

This chapter demonstrated the nuts and bolts of defining classes, including adding fields, properties, events, and methods; how to manage complexity with access specifiers; and how to employ modifiers. This chapter introduced revisions to interfaces and how to implement interface methods, how to implement nested classes, use multithreading, and inheritance.

Chapters 8 and 9 expand on the discussion of events and delegates introduced in this chapter, and ...

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