create an instance for hotel apartment
| 18 | }; |
| 19 | //create an instance for hotel apartment |
| 20 | class HotelApartment : public HotelRoom { |
| 21 | public: |
| 22 | HotelApartment(int bedrooms, int bathrooms) |
| 23 | : HotelRoom(bedrooms, bathrooms) {} |
| 24 | |
| 25 | int get_price() { |
| 26 | return HotelRoom::get_price() + 100; |
| 27 | } |
| 28 | }; |
| 29 | |
| 30 | int main() { |
| 31 | int n; |
nothing calls this directly
no outgoing calls
no test coverage detected