16 lines
318 B
Java
16 lines
318 B
Java
|
|
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;
|
||
|
|
}
|
||
|
|
}
|