Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main()
- {
- Client testClient1;
- Client testClient2("Franciszek", "Demski", "123456789");
- Address testAddress("Nowodworska", "15/33");
- std::cout << testClient1.clientInfo() << std::endl;
- std::cout << testClient2.clientInfo() << std::endl;
- testClient1.setAddress(&testAddress);
- testClient2.setAddress(&testAddress);
- std::cout << testClient1.clientInfo() << std::endl;
- std::cout << testClient2.clientInfo() << std::endl;
- testAddress.setStreet("Dolna");
- std::cout << testClient1.clientInfo() << std::endl;
- std::cout << testClient2.clientInfo() << std::endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement