Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- TASK = print all Rooms inside of "rooms_" vector
- handler.h
- include rs.h
- class Handler {
- private:
- ReservationSystem rs_; // no access to private vectors in ReservationSystem.h
- if I made a method here then I wont have access to RS private vectors
- }
- ==================================================
- rs.h
- class RS {
- private:
- std::vector <Room> rooms_;
- if method added here then it wont be possible to call it inside Handler class because of private
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement