Question 1 of 10
A kiln class contains the methods below. Which statement is true?
public class Kiln {
private int heat;
public Kiln() {
heat = 200;
}
public void boost() {
heat += 25;
}
public int getHeat() {
return heat;
}
}
- A. boost returns 25 each time it is called
- B. getHeat is a void method
- C. boost is void, and getHeat is non-void
- D. Both methods return the current heat