From CS 61A Wiki
Revision as of 13:51, 6 July 2014 by Axis (Talk | contribs)

Jump to: navigation, search

Inheritance is an OOP idea that specializes a class based on a general class. The specialized class inherits the attributes from the general class but has some special-case behavior. The general class is called the superclass (or parent class or base class), while the specialized class is called the subclass (or child class).


Compared with composition

Method and constructor lookup

Method/attribute overriding