TP6 arbres

This commit is contained in:
EmmanuelTiamzon
2026-01-14 17:29:39 +01:00
parent 5cdf5f602b
commit a84be66f0f
7 changed files with 67 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
public class Noeud {
private ArrayList<Noeud> fils;
private File noeud;
public Noeud(File noeud) {
this.fils = null;
this.noeud = noeud;
}
// Par polymorphisme et redéfinition on prend la valeur et les fils
public Noeud(ArrayList<Noeud> fils, File noeud) {
this.fils = fils;
this.noeud = noeud;
}
}