Advertisement
SergeyLord

House.cpp

Feb 28th, 2020
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. #include <iostream>
  2. #include "House.h"
  3. House::House(int height, int foor_count) // создание объекта House(a,b)
  4. {
  5. this->height = height;
  6. this->floor_count = floor_count;
  7. }
  8.  
  9. void House::set_heght(int height)
  10. {
  11. this->height = height;
  12. }
  13.  
  14. int House:: get_height()
  15. {
  16. return height;
  17. }
  18.  
  19. int House:: build(int floor_count)
  20. {
  21. this->floor_count = floor_count;
  22. this->height += floor_count * 2;
  23. return 0;
  24. }
  25.  
  26. House::~House()
  27. {
  28. std::cout << "HOUSE DESTRUCTED!!!!" << std::endl;
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement