WROX.COM CODE DOWNLOADS FOR THIS CHAPTER
The wrox.com code downloads for this chapter are found on this book’s webpage on Wrox.com on the Download Code tab. The code can also be found at
http://github.com/benperk/BeginningCSharp7. The code is in the Chapter08 folder and individually named according to the names throughout the chapter.
At this point in the book, you’ve covered all the basics of C# syntax and programming, and have learned how to debug your applications. Already, you can assemble usable console applications. However, to access the real power of the C# language and the .NET Framework, you need to make use of object‐oriented programming (OOP) techniques. In fact, as you will soon see, you’ve been using these techniques already, although to keep things simple we haven’t focused on this.
This chapter steers away from code temporarily and focuses instead on the principles behind OOP. This leads you back into the C# language because it has a symbiotic relationship with OOP. All the concepts introduced in this chapter are revisited in later chapters, with illustrative code—so don’t panic if you don’t grasp everything in the first read‐through of this material.
To start with, you’ll look at the basics of OOP, which include answering that most fundamental of questions, “What is an object