O'Reilly logo

C# 2010 for Programmers, Fourth Edition by Harvey M. Deitel, Paul J. Deitel

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

11. Object-Oriented Programming: Inheritance

Objectives

In this chapter you’ll learn:

• How inheritance promotes software reusability.

• To create a derived class that inherits attributes and behaviors from a base class.

• To use access modifier protected to give derived-class methods access to base-class members.

• To access base-class members with base.

• How constructors are used in inheritance hierarchies.

• The methods of class object, the direct or indirect base class of all classes.

Say not you know another entirely, till you have divided an inheritance with him.

Johann Kasper Lavater

This method is to define as the number of a class the class of all classes similar to the given class.

Bertrand Russell

Outline

11.1 Introduction ...

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