1. Computing & Technology

Discuss in my forum

Definition of Inheritance

By , About.com Guide

Definition:

In C++ and C#, classes can be defined as deriving from a base class. A derived class inherits all of the ancestors protected and public methods and data members.

With inheritance if a method is made virtual in the base class then the derived class can override it with different behaviour. This makes possible polymorphism.

Glossary:

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

©2012 About.com. All rights reserved.

A part of The New York Times Company.