Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. int main()
  2. {
  3. Client testClient1;
  4. Client testClient2("Franciszek", "Demski", "123456789");
  5. Address testAddress("Nowodworska", "15/33");
  6.  
  7. std::cout << testClient1.clientInfo() << std::endl;
  8. std::cout << testClient2.clientInfo() << std::endl;
  9.  
  10. testClient1.setAddress(&testAddress);
  11. testClient2.setAddress(&testAddress);
  12.  
  13. std::cout << testClient1.clientInfo() << std::endl;
  14. std::cout << testClient2.clientInfo() << std::endl;
  15.  
  16. testAddress.setStreet("Dolna");
  17.  
  18. std::cout << testClient1.clientInfo() << std::endl;
  19. std::cout << testClient2.clientInfo() << std::endl;
  20.  
  21.  
  22. return 0;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement