EECS 280 Lecture 7: Data Abstraction

42 views1 pages
30 Sep 2018
School
Course
Professor

Document Summary

Data abstraction lets us separate what a type is (and what it can do) from how the type is implemented. In c-style code, we can use a struct to implement data abstraction. The abstractions we create are called abstract data types (adts) Write an abstraction description of the values and operations (triangle. h) Representation invariant are used to express the conditions for a valid compound object. There are some types of combinations a,b and c that are valid because they represent real triangles. You can have a triangle 3,4,9, but you can have one that is 3,4,5. Go to lecture #7 for info on how to test the functions in project 2. A source from which we can read data as input. A sink to which we can write data as output. Support character-based i/o from the terminal, files, etc . It"s useful for simulating stream input from a hardcoded string.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents