Aggregate Data Types Encyclopedia Article

Aggregate Data Types

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.

Aggregate Data Types

Aggregate data types are any types of data that can be referenced as a single entity, but that also consist of more than one piece of data. The data, which is related, is kept together in a way that addresses that relationship. Examples of aggregate data are strings, arrays, classes, and structures.

Strings (sequences of characters) and arrays (collections of like elements) are homogeneous aggregate data types--the multiple values are all of the same data type. Classes (definitions of common properties of the different constituent objects) and structures are heterogeneous aggregate data types--the multiple values can be of different data.

There are advantages to organizing data as an aggregate data type. The data can be used more effectively and easily, because a level of organization has been imposed on the data. More complicated arrangements of data may be defined. Likewise, this organization renders the data easier to interpret and maintain.

Aggregate data types exist in the various programming languages. In C, they are known as structs, whereas other languages label aggregate data types as records or objects. In C++, the objects can contain functions as well as data.