class House {
private:
std::string location;
int rooms;
public:
// Default constructor
House() {
location = "New York";
rooms = 5;
}
// Constructor with parameters
House(std::string loc, int num) {
location = loc;
rooms = num;
}
void summary() {
std::cout << location << " house with " << rooms << " rooms.
";
}
};