public class Studente extends Persona{
String classe;
double mediaVoti;
double[] voti;
Professore[] professori;
public Studente(int e, String n, char s, String em, String t, double mv, String cl){
super(e, n, s, em, t);
voti=new double[100];
professori=new Professore[10];
mediaVoti=mv;
classe=cl;
}
public void addProfessore(Professore p, int i){
professori[i]=p;
}
public void addVoti(double voto, int i){
voti[i]=voto;
}
}
martedì 4 novembre 2008
Iscriviti a:
Commenti sul post (Atom)
Nessun commento:
Posta un commento