Superclass (Computer Science)

Source: Wikipedia: Superclass


Superclass (computer science)

From Wikipedia, the free encyclopedia
Jump to:navigation, search

In computer science, a superclass, base class, or parent class is a class from which other classes are derived. The classes that are derived from a superclass are known as child classes, derived classes, or subclasses.

A superclass allows for a generic interface to include specialized functionality through the use of virtual functions.

The superclass mechanism is extensively used in object oriented programming due to the reusability that can be achieved: common features are encapsulated in modular objects. Subclasses that wish to implement special behavior can do so via virtual methods, without having to duplicate (reimplement) the superclass's behavior.

Languages may support both abstract and concrete superclasses.
[edit] See also

* Top type
* Implementation inheritance
* Inheritance semantics
* Virtual Inheritance

Stub icon This computer programming-related article is a stub. You can help Wikipedia by expanding it.
v • d • e
Retrieved from "http://en.wikipedia.org/wiki/Superclass_(computer_science)"
Categories: Object-oriented programming | Computer programming stubs
Hidden categories: Articles lacking sources from December 2009 | All articles lacking sources
Personal tools

* New features
* Log in / create account

* This page was last modified on 17 April 2010 at 20:35.
* Text is available under the Creative Commons Attribution-ShareAlike License; additional terms may apply. See Terms of Use for details.
Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.
* Contact us

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License