

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Feb. 27, 2007Abstraction
Specification for data structure is abstract
Implementation of data structure is concrete
spec?How do you know if implementation meets the
Abstraction function : concrete abstract
class (^) IntSet (^) { int[] elts; ... (^) }
Part of the (internal) specification
public Interesting idea: Write a function to check the rep (^) boolean repOK() (^) { ...check (^) for duplicates in (^) elts... }
Cost?