Chapter 1

Object-Oriented Programming — What’s It All About?

IN THIS CHAPTER

check Reviewing the basics of object-oriented programming

check Getting a handle on abstraction and classification

check Understanding why object-oriented programming is important

Object orientation is an essential part of modern programming because it helps you model the real world by using code, which is a better way to resolve difficult coding problems than by using procedural programming techniques. This chapter answers two essential questions: “What are the concepts behind object-oriented programming, and how do they differ from the procedural concepts covered in Book 1?” You begin by considering the abstraction that object orientation offers to help create a real-world model in code. The chapter then considers the whole issue of classification and how you use object orientation to create applications faster and easier than by using procedural techniques.

Object-Oriented Concept #1: Abstraction

You get into your car intending to drive somewhere. You start the car, put the car in gear, and then press the accelerator to move forward. The brake lets you temporarily stop the car so that you don’t hit pedestrians or break ...

Get C# 7.0 All-in-One For Dummies 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.