CS 5500: Information Hiding
Module Overview
This week you will learn about information hiding, which is both a benefit of abstraction barriers and a way to enforce abstraction barriers. We'll start by discussing interchangeable parts and testing. You will learn to distinguish between glass-box and black-box testing, which will help you to understand how interchangeability of parts depends upon abstraction barriers and information hiding. You will also learn benefits and limitations of execution-based testing.
Course Map
Readings
No readings yet.
Resources
-
Improved information hiding in our
Stack<E>ADT:-
Stack1is the original version with a couple of new tests: -
Stack2removes thepublickeyword where possible: -
Stack3adds theprivatekeyword where possible: -
Stack4moves implementation-specific class into theStacksclass -
Stack5declares nested classesprivate
-
-
Java interface for
SearchableString.java - video excerpts of class discussion:
Homework Assignments
These assignments are in Unicode format UTF-8. To read the non-ASCII symbols, you may need to adjust your browser.
To complete these assignments, you'll need to use the SearchableString.java Java interface linked above under Resources.