// Source: "Software Design ...", John A Robinson, Newnes, 2004, page 148. class mountain : public location { float height; public: mountain() {}; ~mountain() {}; void load(istream& in) { in >> name >> latitude >> ns >> longitude >> ew >> height; } void save(ostream& out) const { out << name << ' ' << latitude << ' ' << ns << ' ' << longitude << ' ' << ew << ' ' << height << '\n'; } const float getheight() const { return(height); } };