Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Employee {
- private String name;
- private Phone phone;
- private Address address;
- public Employee(String name, Phone phone, Address address) {
- this.name = name;
- this.phone = phone;
- this.address = address;
- }
- public String getName() {
- return name;
- }
- public Phone getPhone() {
- return phone;
- }
- public Address getAddress() {
- return address;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement