
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
An overview of abstract data types (adts) and abstraction in c++ programming. The concept of adts, how they act as a wall between the client and implementer, and the benefits of using adts such as abstraction, encapsulation, independence, and flexibility. The document also includes an example of a lexicon class and its implementation.
Typology: Lecture notes
1 / 1
This page cannot be seen from the preview
Don't miss anything!

Lecture # 18
Declares, init object Doesn’t know internal structure of object
Manipulates object through public member functions
Lexicon lex;
lex.addWord("dog"); lex.addWord("cat"); lex.containsWord("pig");
Knows internal structure Has access to private data Manipulates object in implementing member functions
words[nWords++] = str;
nWords words
2 the and
lex.nWords++; lex.words[0] = "pig";