1 / 4

Abstract Data Types

Abstract Data Types. Modularity manage complexity enable maintenance Two Components Set of data structures Set of operations on those data structures Answers Two Questions What do I know What can I do. Key Ideas. What do I know? Length & Width What can I do? Accessors Set width

ewa
Download Presentation

Abstract Data Types

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Abstract Data Types

  2. Modularity • manage complexity • enable maintenance • Two Components • Set of data structures • Set of operations on those data structures • Answers Two Questions • What do I know • What can I do Key Ideas

  3. What do I know? • Length & Width • What can I do? • Accessors • Set width • Set length • Mutators • Get width • Get length • Get area An Example: Rectangle (ex 33)

  4. What do I know • My size • My type • My contents • What can I do • Create myself • Constructor • Destroy myself • Destructor • Display myself • Insert an item into a position • Remove an item from a position • Get an item from a position • Find the largest item More Complex Example: Array (ex 34)

More Related