MCPcopy Create free account
hub / github.com/Vishruth-S/CompetitiveCode / HotelApartment

Class HotelApartment

Hackerrank_problems/Hotel Price/solution.cpp:20–28  ·  view source on GitHub ↗

create an instance for hotel apartment

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected