I have a Person class and a Date class, the Person class creates a person the date class creates a date to use as the date of birth in the Person class, how is it that when creating a Person I create a date without having to use the code complete in the middle of the person object, the code created so far is this:
public static void main(String[] args) {
Data d = new Data(0, 0, 0);
Pessoa p = new Pessoa("Miguel", "Rua D. Maria", "7400604", objeto_data, "Solteiro");
}