5Getting Started with Object-Oriented Programming

5.1 The Object Concept

5.2 Introduction to Object-Oriented Design

5.3 Classes in C#

5.4 Using C# Objects

5.5 Class Variables and Methods

5.6 The QuickFood Example

Abstracting objects makes us more successful. Life would be much more difficult if we only saw blotches of color everywhere or heard unclassified sounds, but instead we see a tree or hear a bell. In programming, too, objects help to organize our programs in ways we can understand and modify. Not every application benefits from object-oriented programming, but for many it is very effective. We first define the object concept without using C#. We illustrate objects by developing a simple vending machine.

Next, using two simple examples, ...

Get Computing with C# and the .NET Framework, 2nd Edition 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.