/* File: pmain2.C

   Use the Package class.
*/

#include <stdio.h>
#include "package.h"

main() {
   Package p1 = Package(1.0, 1.0, 1.0)  ;
   Package p2 = Package(2.0, 2.0, 2.0) ;
   int r ;

   printf("p1: ") ;
   p1.identify() ;
   printf("p2: ") ;
   p2.identify() ;

   r = p2.Store(&p1) ;
   printf("store p1 in p2, r=%d\n", r) ;

   /* public member functions in the Box class are not accessible
      through a Package, because Package is a private direvation of Box */
   p1.grow() ;
    
}
