About Question com.enthuware.jfcja.v8.2.479 :
Posted: Sun Mar 26, 2023 12:29 pm
I checked point 1. Namely, I created the Furnace class in the same com.cool package. My class looks like this:
package com.cool;
public class Furnace
{
public void cool(Cooler c) { // 2
c.doCool();
}
}
The compiler didn't throw any errors. Thus 3 correct answers: 1,3,6. But only 3.6 are selected as correct
package com.cool;
public class Furnace
{
public void cool(Cooler c) { // 2
c.doCool();
}
}
The compiler didn't throw any errors. Thus 3 correct answers: 1,3,6. But only 3.6 are selected as correct