First page Back Continue Last page Graphics
Aspect of Reusability
Classes – in source code form
- Thus, we write generic code whenever possible
Assemblies of related classes
- A toolkit is a library of reusable classes designed to provide useful, general-purpose functionality.
- E.g., C++ standard library, Boost
- An application framework is a specific set of classes that cooperate closely with each other and together embody a reusable design for a category of problems.
- E.g., Java APIs (Applet, Thread, etc), gtkmm
Design pattern