Guest User

Untitled

a guest
Feb 26th, 2021
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.50 KB | None | 0 0
  1. class Cat final : public std::enable_shared_from_this<Cat> {
  2. public:
  3.     const std::string name;
  4.     const Breeds breed;
  5.  
  6.     Cat(std::string, Breeds, Stats);
  7.     ~Cat() = default;
  8.  
  9.     void make_cat_sound();
  10.  
  11. private:
  12.     Stats stats;
  13.  
  14.     inline static auto home = Home::get_instance();
  15.     bool in_home;
  16.     std::thread thread;
  17.     //inline static std::mutex catMutex;
  18.  
  19.     void being_a_cat();
  20.     void staying_at_home();
  21.     void walk();
  22.     void go_outside();
  23.     void go_to_home();
  24. };
  25.  
Advertisement
Add Comment
Please, Sign In to add comment