EECS 280 Lecture 7: Data Abstraction
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.