lunedì 3 novembre 2008

compito per martedi 4/11/2008

compito per martedi 4/11/2008 Alessio Cavalierini
-----------------------------------------------------------------------------------------------------
public class Studente extends Persona { //extends serve per l'ereditarietà
String classe;
double mediaVoti;
double[] voti;
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];
classe=cl;
mediaVoti=mv;
}

public String getClasse(){
return classe;
}

public double getMediaVoti(){
return mediaVoti;
}

public double getVoti(){
return voti;
}

public void setClasse(String cl){
classe=cl;
}

public void setMediaVoti(double mv){
mediaVoti=mv;
}

public void setVoti(double v){
voti=v;
}


}
-------------------------------------------------------------------------------------
non sapevo come scrivere l' array..........
-------------------------------------------------------------------------------------
comunque ci ho provato
-------------------------------------------------------------------------------------
fine
---------------------------

Nessun commento: