logo

Crowdly

class A {     void afficher() {         System.out.println("A");     } } class...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

class A {

    void afficher() {

        System.out.println("A");

    }

}

class B extends A {

    void afficher() throws RuntimeException {

        System.out.println("B");

    }

}

public class Test {

    public static void main(String[] args) {

        A obj = new B();

        obj.afficher();

    }

}

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

Want instant access to all verified answers on cours.cyu.fr?

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