11 Advanced Object-Oriented Techniques
WHAT YOU WILL LEARN IN THIS CHAPTER:
- How to create a favorite viewer
- How to create an alternative favorite viewer
- How to work with shared properties and methods
- Understanding object-oriented and memory management
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 C11.zip download and individually named according to the names given throughout the chapter.
In Chapter 10, you looked at how you can build your own objects. Prior to that, you had been mostly using objects that already existed in the .NET Framework to build your applications. In this chapter, you’ll take a look at some more object-oriented software development techniques.
In the first half of this chapter, you create your own classes. You will create a single-tier application like the others discussed so far in this book. You then learn about creating your own shared properties and methods. These are very useful when you want a method or property to apply to a class as a whole, rather than a specific instance of that class. Finally, you look at memory management in Visual Studio 2015 and what you can do to clean up your objects properly.
BUILDING A FAVORITES VIEWER
In the first half of this chapter, you’ll build a simple application that displays all your Internet Explorer favorites and provides a button that you can click to open the URL in ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access