// File: Package.h // // Declare a class Package that is derived from Box #ifndef PACKAGE_H #define PACKAGE_H #include "box.h" class Package : private Box { // private derivation of class Box public: Package() ; // default constructor Package(float, float, float) ; // alternate constructor ~Package() ; // destructor void identify() ; // identify redefined bool Store(Package *) ; // store item in this package Package *Empty() ; // empty this package Package *Content() ; // return stored item private: // a package might contain another package, but only if it fits Package *inside ; } ; #endif