Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package br.ufc.mandacaru.model;
- public class Person {
- private int id;
- private String name;
- private Address address;
- public Person() {
- }
- public Person(int id, String name, Address address) {
- super();
- this.id = id;
- this.name = name;
- this.address = address;
- }
- public int getId() {
- return id;
- }
- public void setId(int id) {
- this.id = id;
- }
- public String getName() {
- return name;
- }
- public void setName(String name) {
- this.name = name;
- }
- public Address getAddress() {
- return address;
- }
- public void setAddress(Address address) {
- this.address = address;
- }
- @Override
- public String toString() {
- return "Person [id=" + id + ", name=" + name + ", address=" + address + "]";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement