// namespace2.h By: Aiman Hanna - ©1993-2006 Aiman Hanna #ifndef __NAMESPACE2_H #define __NAMESPACE2_H #include "namespace1.h" class Calc2 { public: Calc2(double x = 10); void setValue(Calc1&); // sets the value to the same value of the passed object double getValue(); private: double v1; }; // Global object (variable) static Calc2 dup(22); #endif