Question 1 of 5
An oven constructor is unfinished.
class Oven {
private int heat;
public Oven(int heat) {
/* missing assignment */
}
public int reading() {
return this.heat;
}
}
(a) Write the constructor assignment that stores the parameter in the field. (b) After Oven deck = new Oven(375); what does System.out.print(deck.reading()); display?