Question 1 of 10
The SiloBin class is supplied. What text does this caller display?
class SiloBin {
private int kg;
public SiloBin(int start) {
kg = start;
}
public void fill(int n) {
kg += n;
}
public int stored() {
return kg;
}
}
SiloBin east = new SiloBin(20);
east.fill(7);
System.out.print(east.stored());
- A. 7
- B. 20
- C. 27
- D. 13