✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Given the following code:
interface Printer {
void print();
}
class LaserPrinter implements Printer {
public void print() {
System.out.println("Laser");
}
public void warmUp() {
System.out.println("Warming up...");
}
}
public class Test {
public static void main(String[] args) {
Printer p = new LaserPrinter();
p.print();
p.warmUp();
}
}
What happened?