Prog_3/Trabalhos/ProjetoHospital2/src/Entities/Person/Person.java
package Entities.Person;

import java.sql.Date;

public abstract class Person {

  private String Name;
  private Date BirthDate;
  private Address Address;

  protected Person(String Name, Date BirthDate, Address Address) {
    this.Name = Name;
    this.BirthDate = BirthDate;
    this.Address = Address;
  }

  public String getName() {
    return Name;
  }

  public void setName(String Name) {
    this.Name = Name;
  }

  public Date getBirthDate() {
    return BirthDate;
  }

  public void setBirthDate(Date BirthDate) {
    this.BirthDate = BirthDate;
  }

  public Address getAddress() {
    return Address;
  }

  public void setAddress(Address Address) {
    this.Address = Address;
  }

  public String toString() {
    return String.format("Name: %s %s %s", Name, BirthDate, Address);
  }

}