|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttp.mesClasses.Promotion
public class Promotion
Cette classe décrit une promotion d'étudiants
Field Summary | |
---|---|
(package private) Etudiant[] |
promotion
La promotion est un tableau d'étudiants |
Constructor Summary | |
---|---|
Promotion()
Permet de construire une promotion sans étudiants |
|
Promotion(Etudiant[] promotion)
Permet de construire une promotion à partir d'un tableau d'étudiants |
Method Summary | |
---|---|
void |
ajoutEtudiant(Etudiant e)
Permet d'ajouter un étudiant à la promotion |
int |
effectif()
Permet de connaître l'effectif de la promotion |
Etudiant[] |
etudiantAdmis()
Permet de connaître souis forme de tableau les étudiants qui ont le semestre |
double |
moyenne()
Permet de connaître la moyenne de la promotion |
void |
suppressionEtudiantParNumero(int no)
Permet de supprimer un ou plusieurs étudiants en connaissant un numéro |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
Etudiant[] promotion
Constructor Detail |
---|
public Promotion()
public Promotion(Etudiant[] promotion)
promotion
- Method Detail |
---|
public void ajoutEtudiant(Etudiant e)
e
- l'étudiant à ajouterpublic int effectif()
public Etudiant[] etudiantAdmis()
public double moyenne()
public void suppressionEtudiantParNumero(int no)
no
- le numéro du ou des étudiants à supprimerpublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |