This commit is contained in:
EmmanuelTiamzon
2026-02-11 15:00:39 +01:00
parent 4cf3af3b72
commit e6c28b79f9
3 changed files with 27 additions and 27 deletions

View File

@@ -6,21 +6,24 @@
*/
public class MonMaillon {
private MonMaillon suivant;
private Base contenu;
public MonMaillon(Base b){
throw new UnsupportedOperationException("cette méthode n'est pas implémentée");
this.contenu = b;
}
public MonMaillon(Base b, MonMaillon l){
throw new UnsupportedOperationException("cette méthode n'est pas implémentée");
this.contenu = b;
this.suivant = l;
}
public Base getBase(){
throw new UnsupportedOperationException("cette méthode n'est pas implémentée");
return this.contenu;
}
public MonMaillon getSuiteMaillon(){
throw new UnsupportedOperationException("cette méthode n'est pas implémentée");
return this.suivant;
}
}