# ######################################################################### # # Implémentation d'un arbre binaire en Programmation Orientée Objet (POO) # # Programme arbre_poo Version 1 # # ######################################################################### # class Arbre: # classe def __init__(self, val): # __init__ : constructeur self.valeur = val # attribut self.gauche = None # attribut self.droit = None # attribut def ajout_gauche(self, val): # méthode self.gauche = Arbre(val) def ajout_droit(self, val): # méthode self.droit = Arbre(val)