What is inheritance hierarchy?

Author Topic: What is inheritance hierarchy?  (Read 681 times)

Offline chinmay.sahooTopic starter

  • Trade Count: (0)
  • Full Member
  • ***
  • Thank You 2
  • Posts: 159
  • Karma: 0
    • Hot Shaper
What is inheritance hierarchy?
« on: 03-12-2016, 03:58:28 »
Functionality derived from a class is called as a derived class. It can also be a based class for a different class. Thus it is possible to create a structure and this is called as inheritance hierarchy


Offline RH-Calvin

  • Trade Count: (0)
  • Hero Member
  • *****
  • Thank You 53
  • Posts: 1093
  • Karma: -1
  • Gender: Male
    • Cheap VPS Hosting
Re: What is inheritance hierarchy?
« Reply #1 on: 03-14-2016, 23:19:57 »
In object-oriented programming (OOP), inheritance is when an object or class is based on another object (prototypal inheritance) or class (class-based inheritance), using the same implementation (inheriting from an object or class) specifying implementation to maintain the same behavior.

Offline TomClarke

  • Trade Count: (0)
  • Hero Member
  • *****
  • Thank You 18
  • Posts: 898
  • Karma: 0
  • Gender: Male
    • Custom Writing Service & Content Marketplace
Re: What is inheritance hierarchy?
« Reply #2 on: 04-19-2016, 04:49:55 »
Inheritance has some benefits:
- subclasses provide specialized behaviors from the basis of common elements provided by the superclass. Through the use of inheritance, programmers can reuse the code in the superclass many times;
- programmers can implement superclasses called abstract classes that  define "generic"  behaviors. The abstract superclass defines and may partially implement the behavior but much of the class is undefined and unimplemented. Other programmers fill in the details with specialized subclasses.
Your ideas, our writings - Writology.com