Abstract Class Encyclopedia Article

Abstract Class

The following sections of this BookRags Literature Study Guide is offprint from Gale's For Students Series: Presenting Analysis, Context, and Criticism on Commonly Studied Works: Introduction, Author Biography, Plot Summary, Characters, Themes, Style, Historical Context, Critical Overview, Criticism and Critical Essays, Media Adaptations, Topics for Further Study, Compare & Contrast, What Do I Read Next?, For Further Study, and Sources.

(c)1998-2002; (c)2002 by Gale. Gale is an imprint of The Gale Group, Inc., a division of Thomson Learning, Inc. Gale and Design and Thomson Learning are trademarks used herein under license.

The following sections, if they exist, are offprint from Beacham's Encyclopedia of Popular Fiction: "Social Concerns", "Thematic Overview", "Techniques", "Literary Precedents", "Key Questions", "Related Titles", "Adaptations", "Related Web Sites". (c)1994-2005, by Walton Beacham.

The following sections, if they exist, are offprint from Beacham's Guide to Literature for Young Adults: "About the Author", "Overview", "Setting", "Literary Qualities", "Social Sensitivity", "Topics for Discussion", "Ideas for Reports and Papers". (c)1994-2005, by Walton Beacham.

All other sections in this Literature Study Guide are owned and copyrighted by BookRags, Inc.

Abstract Class

An abstract class is a component of object-oriented programming. The C++ and Java programming languages are two examples of object-oriented programming. An abstract class is a so-called superclass, or parent, which functions as a placeholder for items of a common function, and provides a common interface for inherited classes.

An abstract class is useful when the contained information is the same as that in an existing class. Both classes, however, do not contain the full amount of information necessary for execution of the information. Some behaviors can be defined, with other aspects defined by related sub-classes. For example, an abstract class can provide default aids such as message handling, which can be an added component of an application. Other functions, such as start-up and shutdown, cannot be add-ons. An abstract class, however, can support these functions by supplying the start-up and shutdown methods. In other words, the abstract class could initiate the action, but not provide all the necessary information for the performance of the task.

Functionally, an abstract class is often used to locate incomplete sets of features so that other sub-classes can share the information or add to it, creating a more complete net effect.

Another example of an abstract class is the Boolean class. This abstract class has two subclasses, true and false.