public boolean equals(Object obj) { if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } CoAutor other = (CoAutor) obj; if (!(this.Nome.equals(other.getNome()))) { return false; } return true; }
public CoAutor(CoAutor n) { this.Nome = n.getNome(); this.pub = n.getCoAut(); }