Question 1 of 10
A prize booth stores leftover ink with this. What text does this Java code display?
class StampPad {
private int ink;
public StampPad(int ink) {
this.ink = ink;
}
public int remaining() {
return this.ink;
}
}
StampPad desk = new StampPad(10);
System.out.print(desk.remaining());
- A. 0
- B. 10
- C. ink
- D. null