Advertisement
Guest User

Untitled

a guest
Sep 20th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.48 KB | None | 0 0
  1. TASK = print all Rooms inside of "rooms_" vector
  2.  
  3. handler.h
  4. include rs.h
  5.  
  6. class Handler {
  7. private:
  8.     ReservationSystem rs_; // no access to private vectors in ReservationSystem.h
  9.     if I made a method here then I wont have access to RS private vectors
  10. }
  11. ==================================================
  12.  
  13. rs.h
  14.  
  15. class RS {
  16. private:
  17.     std::vector <Room> rooms_;
  18.     if method added here then it wont be possible to call it inside Handler class because of private
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement