[prev] 34 [next]

From ADOs to ADTs

Abstract Data Objects
  • Stack.c provides a single abstract object stackObject
Abstract Data Types
  • allow clients to create and manipulate arbitrarily many data objects of an abstract type
  • … without revealing the implementation to a client
In C, ADTs are implemented using pointers and dynamic memory allocation