#ifndef SOLIDH #define SOLIDH #include #include "liquid.h" using namespace std; class solid { int n; public: solid(int initial_n): n(initial_n) {} operator liquid() const {cout << "solid to liquid\n"; return n;} }; #endif