![]() |
Data Abstraction and Problem Solving with C++Walls and Mirrorsby Frank M. Carrano |
![]() |
c11p598a.hGo to the documentation of this file.00001 00014 #include <string> 00015 00016 using namespace std; 00017 00018 class City 00019 { 00020 public: 00021 // . . . 00022 // methods for accessing private data members 00023 private: 00024 string cityName; // city's name 00025 string country; // city's country 00026 int pop; // city's population 00027 }; // end City |