TP6 arbres
This commit is contained in:
16
DEV.3.2/TP/TP7-Arbres/1.Repertoires/Noeud.java
Normal file
16
DEV.3.2/TP/TP7-Arbres/1.Repertoires/Noeud.java
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user