ivanalves-t / ProjetoSGA

0 stars 0 forks source link

Garantir instancia correta do Administrador #15

Closed ivanalves-t closed 1 month ago

ivanalves-t commented 2 months ago

Todas as classes que têm listas como atrributo deverão ser instanciadas sem a lista como argumento, por exemplo:

public class GymMembership {

private String name;
private String cpf;
private String instructorName;
private String[][] trainList;
private String gymName;

public GymMembership(String name, String cpf, String instructorName, String gymName) {
    this.name = name;
    cpf = cpf;
    this.instructorName = instructorName;
    this.gymName = gymName;
}

a instancia seria assim:

GymMembership membership = new GymMemberShip (name, cpf, instructorName, gymName);

ivanalves-t commented 1 month ago

projeto finalizado