faguilavidal
4/28/2015 - 4:54 PM

Getter & Setter

Getter & Setter

//Numeric Data:
 
//Getter
public double getTotal() {
    return total;
}
 
//Setter
public void setTotal(double total) {
    this.total = total;
}