Tetse
By: a guest | Mar 21st, 2010 | Syntax:
C# | Size: 0.54 KB | Hits: 85 | Expires: Never
public class Nota {
private float b1;
private float b2;
private float b3;
private float b4;
public float getB1() {
return b1;
}
public void setB1(float b1) {
this.b1 = b1;
}
public float getB2() {
return b2;
}
public void setB2(float b2) {
this.b2 = b2;
}
public float getB3() {
return b3;
}
public void setB3(float b3) {
this.b3 = b3;
}
public float getB4() {
return b4;
}
public void setB4(float b4) {
this.b4 = b4;
}
public float calcularMedia(){
return (b1+b2+b3+b4)/4;
}
}