Académique Documents
Professionnel Documents
Culture Documents
Programation or
Programation or
_nom: str
_prenom: str def __init__(self, a, b, c, d, e, f):
_age: int super().__init__(a, b, c, d)
_tel: int self.__specialite = e
_type: str self.__salaire = f
def _afficherInformation(self):
print("Votre Nom : ",self._nom)
print("Votre Prenom : ",self._prenom)
print("Votre Age : ",self._age)
print("Votre Tel : ",self._tel)
def __calculerType(self):
if(self._age >= 18):
self._type = "Majeur"
else:
self._type = "Mineur"
class Etudiant(Personne):
__note: int
__niveau: str
def setNote(self,a):
self.__note = a
def setNiveau(self,a):
self.__niveau = a
def getNote(self):
return self.__note
def getNiveau(self):
return self.__niveau
def afficherInfoEtudiant(self):
super()._afficherInformation()
print("Votre nate : ",self.__note)
print("Votre niveau : ",self.__niveau)
class Formateur(Personne):
__specialite: str