#ifndef GATESH #define GATESH #include using namespace std; class gates { public: class bill; //declaration for class gates::bill }; class gates::bill { //definition for class gates::bill double d; public: bill(double initial_d): d(initial_d) {} void g() const {cout << d << "\n";} }; #endif