Nama : henry novianto
Nim : 2012420114
public class persegipanjang {
public double p;
public double L=4;
private double kellng;
private double luas;
public double getP() {
return p;
}
/**
* @param p the p to set
*/
public void setP(double p) {
this.p = p;
}
/**
* @return the L
*/
public double getL() {
return L;
}
/**
* @param L the L to set
*/
public void setL(double L) {
this.L = L;
}
/**
* @return the kellng
*/
public double getKellng() {
kellng=2*(p+L);
return kellng;
}
/**
* @param kellng the kellng to set
*/
public void setKellng(double kellng) {
this.kellng = kellng;
}
/**
* @return the luas
*/
public double getLuas() {
luas=p*L;
return luas;
}
/**
* @param luas the luas to set
*/
public void setLuas(double luas) {
this.luas = luas;
}
}
Posted by 00.15 and have
0
komentar
, Published at
Tidak ada komentar:
Posting Komentar