O'Reilly logo

Application Development Using C# and .NET by Robert J. Oberg, Michael Stiefel

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

Chapter 4. Object-Oriented Programming in C #

In this chapter we study in detail the object-oriented aspects of C#, with an emphasis on inheritance. First we review the fundamentals of object-oriented programming. Next, the Acme Travel Agency case study is introduced. This case study is developed throughout the entire book, as we explain more about .NET. We consider some abstractions that will enable us to implement a reservation system for a variety of resources, and we provide an implementation of a hotel reservation system. The abstract base classes we define provide reusable code that enables us to easily implement other kinds of reservation systems. The key is finding the right abstractions.

We will see how C# language features facilitate ...

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