/* File: box2.h Second attempt at defining a box class. */ #ifndef _box2_h #define _box2_h class Box { public: Box() ; /* the default constructor */ Box(float,float,float) ; /* another constructor */ void identify() ; /* prints out vital stats */ float volume() ; /* volume of the box */ void grow() ; /* double box dimensions */ void shrink() ; /* halve box dimensions */ private: static int count ; /* static means shared */ float length ; /* box length */ float height ; /* box height */ float width ; /* box width */ float random() ; /* private random function */ } ; #endif