2.2 Data Abstraction
Constructors, selectors, and the power of abstraction barriers
Separate the use of data from its implementation. Build rational number arithmetic behind a clean interface, then see that even functions can serve as data.
Estimated time: 50 minutes
Stuck on something? The AI tutor sees this lecture—just ask.
Loading learning experience...