Encyclopedia > Abstract class

  Article Content

Abstract class

In computer science's object-oriented programming, an abstract class is one that is designed only as a parent class and from which child classes may be derived, and which is not itself suitable for instantiation. Abstract classes are often used to represent abstract concepts or entities. The incomplete features of the abstract class are then shared by a group of sibling sub-classes which add different variations of the missing pieces.

Abstract classes are superclasses which contain abstract methods and are defined such that subclasses are to extend them by implementing the methods. The behaviors defined by such a class are "generic" and much of the class will be undefined and unimplemented. Before a class derived from an abstract class can be instantiated, it must implement particular methods for all the abstract methods of its parent classes.

See also:



All Wikipedia text is available under the terms of the GNU Free Documentation License

 
  Search Encyclopedia

Search over one million articles, find something about almost anything!
 
 
  
  Featured Article
Eurofighter

... The Tornados will be replaced from 2006-2010, and the Jaguars from 2010-2014. Initial deliveries of the Typhoon to the RAF have begun. The first unit to form will ...

 
 
 
This page was created in 24.8 ms