Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include "House.h"
- House::House(int height, int foor_count) // создание объекта House(a,b)
- {
- this->height = height;
- this->floor_count = floor_count;
- }
- void House::set_heght(int height)
- {
- this->height = height;
- }
- int House:: get_height()
- {
- return height;
- }
- int House:: build(int floor_count)
- {
- this->floor_count = floor_count;
- this->height += floor_count * 2;
- return 0;
- }
- House::~House()
- {
- std::cout << "HOUSE DESTRUCTED!!!!" << std::endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement