O'Reilly logo

Beginning Visual Basic 2015 by Bryan Newsome

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

10 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

WROX.COM CODE DOWNLOADS FOR THIS CHAPTER

The wrox.com code downloads for this chapter are found at www.wrox.com/ begvisualbasic2015 on the Download Code tab. The code is in the 092117 C10.zip 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 2015.

UNDERSTANDING OBJECTS

An object is ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required