b. Describe an example of a simple ADT that illustrates your definition. ( 4 points ).
c. How would your code your example ADT in C++? (5 points)
2b. Here [ 14q.cpp ] is a file with three classes: A, B, and C. Which is a client, which is an interface, and which implements the interface?
Question 3 Specification vs Implementation
List the advantages of defining ADTs in two separate parts: specification and
implementation.
Question 4 Design Requirements
List the design requirements for a language that supports abstract data types.
Question 5 Language Support for ADTS
Give examples of 3 different languages with different support for ADTs and
describe the way each supports them.
Question 6 Stacks
The run time stack in a language environment is an implementation of the Stack
ADT. Write a specification for the ADT Stack.
Question 8 Java vs C++ ADTs
Explain how Java differs from C++ with respect to providing data abstraction.
What has been added? What has been removed?
Question 9 Ada Packages
Explain how the three parts of an Ada package work: Public, Private, and Body.