Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. public class Employee {
  2.  
  3. private String name;
  4. private Phone phone;
  5. private Address address;
  6.  
  7. public Employee(String name, Phone phone, Address address) {
  8. this.name = name;
  9. this.phone = phone;
  10. this.address = address;
  11. }
  12.  
  13. public String getName() {
  14. return name;
  15. }
  16.  
  17. public Phone getPhone() {
  18. return phone;
  19. }
  20.  
  21. public Address getAddress() {
  22. return address;
  23. }
  24.  
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement