Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. #pragma once
  2. #include <iostream>
  3. #include <string>
  4. using namespace std;
  5.  
  6. class HotelRoom
  7. {
  8. protected:
  9. int cost; // цена
  10. string status; // статус
  11. string description; // описание
  12. virtual void ShowCost() = 0;
  13. virtual void ShowDescription() = 0;
  14. };
  15.  
  16. #pragma once
  17. #include "HotelRoom.h"
  18. class Econom :
  19. protected HotelRoom
  20. {
  21. public:
  22. int cost; // цена
  23. string status; // статус
  24. string description; // описание
  25. //Econom();
  26. //~Econom();
  27. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement