ch03 - Ch 3 Data Abstraction Overview Designing ADTs...

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
Ch 3 – Data Abstraction Overview Designing ADTs Declaring ADTs Using ADTs Implementing ADTs Conclusion
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Overview Abstract data types (ADTs) are used to simplify program design and implementation The purpose of an ADT is to group data that “belong together” into one place ADTs also specify operations that “make sense” for that group of data This modular design makes it easier for several people to work together to create robust code
Background image of page 2
Designing ADTs Key idea is to think about nouns (data) and verbs (operations) that belong together Draw diagrams of data to aid in design Student Name Address GPA
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Designing ADTs Make point form list of operations for ADT setName, setAddress, setGPA (store data) getName, getAddress, getGPA (retrieve data) print Make notes to yourself about any constraints on the data or operations Name must not be blank GPA must be between 0. .4
Background image of page 4
Declaring ADTs Most object oriented programming languages
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 13

ch03 - Ch 3 Data Abstraction Overview Designing ADTs...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online