logo

Crowdly

Browser

Add to Chrome

Given the following code: interface Printer {     void print(); } class Laser...

✅ 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?

0%
100%
0%
0%
More questions like this

Want instant access to all verified answers on learning.devinci.fr?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome