Chapter 11

Building Objects

What You Will Learn in this Chapter

  • Building a reusable object with methods and properties
  • Inheriting the object that you build in another object
  • Overriding methods and properties in your base object
  • Creating your own namespace Code Downloads for this Chapter

The code downloads for this chapter are found at on the Download Code tab. The code is in the 311813 download and individually named according to the names given throughout the chapter.

You may have heard the term object-oriented a lot since you first started using computers. You may also have heard that it is a scary and tricky subject to understand. In its early years it was, but today's modern tools and languages make object orientation (OO) a wonderfully easy-to-understand concept that brings massive benefits to software developers. This is mainly because languages such as Visual Basic and C# have matured to a point where they make creating objects and the programs that use them very easy indeed. With these languages, you will have no problem understanding even the most advanced object-oriented concepts and will be able to use them to build exciting object-based applications.

You have been using objects and classes throughout this book, but in this chapter you look at OO in detail and build on the foundations of the previous chapters to start producing some cool applications using Visual Basic 2012.

Understanding Objects

Get Beginning Visual Basic 2012 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.