[prev] [index] [next]

Abstract Data Types (cont)

ADT interface provides
  • a client-view of the data structure (e.g. FILE*)
  • function signatures (prototypes) for all operations
  • semantics of operations (via documentation)
ADT implementation gives
  • definition of the data structures (representation)
  • implementation for all operations as functions
Note: C does not enable us to completely hide the implementation.