This commit is contained in:
2026-04-08 16:00:42 +02:00
parent c8ee9b0a37
commit c13bb289ed
2 changed files with 67 additions and 0 deletions

View File

@@ -77,6 +77,13 @@ public class Poisson{
this.infestation = infestation;
}
/**
* Setter de l'attribut length
* @param length le Double de la nouvelle valeur de la length
*/
public void setLength(Double length) {
this.length = length;
}
/**
* Setter de l'attribut des parties de poisson.
@@ -95,4 +102,6 @@ public class Poisson{
String result = "[ %5s : %4f mm, %4f g, %4f taux d'infestation ]";
return String.format(result, this.getClass().getSimpleName(), this.getLength(), this.getWeight(), this.getInfestation() );
}
}