Book Statistics
1 Views
0 Comments
0 Rating

Inheritance

Author:

Description

 

In object-oriented programming (OOP), Inheritance is a way to compartmentalize and reuse code by creating collections of attributes and behaviors called objects which can be based on previously created objects. In classical inheritance where objects are defined by classes, classes can inherit other classes. The new classes, known as Sub-classes (or derived classes), inherit attributes and behavior of the pre- existing classes, which are referred to as Super-classes (or ancestor classes). The inheritance relationship of sub- and superclasses gives rise to a hierarchy. In Prototype-based programming objects can be defined directly from other objects without the need to define any classes.The inheritance concept was invented in 1967 for Simula.

Keywords

Inheritance Forms of Inheritance OOP Subclasses Overriding Methods Software Object Oriented Programming Inheritance Reusability derived class Single inheritance Multiple inheritance Hierarchical inheritance Multi-Level inheritance Hybrid inheritance Multi-path inheritance Forms of Inheritance keyword �extends� subclass/child class Sub class OOP GraphicCircle Without Inheritance

Download & Read Options

Reader's Comments (0)

Login to Comment
No Comments Yet

Be the first to share your thoughts about this book!