Jump to content

Inheritance (object-oriented programming)

From Simple English Wikipedia, the free encyclopedia
Revision as of 23:17, 25 April 2007 by Eptalon (talk | changes) (New page: In Object-oriented programming languages, '''inheritance''' is a way to add functionality. Object-oriented programming has the notion of classes (and perhaps interfaces). A ''derived c...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

In Object-oriented programming languages, inheritance is a way to add functionality. Object-oriented programming has the notion of classes (and perhaps interfaces). A derived class inherits most fields and methods from its parent class. It can modify the behaviour of the parent, by adding new fields and methods, or by modifying existing ones. Depending on the prohramming language used, there may be certain restrictions when extending a class.