logo

Crowdly

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

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

class X {

    void afficher() {

        System.out.println("X");

    }

}

class Y extends X {

    void afficher() {

        System.out.println("Y");

    }

}

class Z extends Y {

    void afficher() {

        super.afficher();

    }

}

public class Test {

    public static void main(String[] args) {

        Z obj = new Z();

        obj.afficher();

    }

}

100%
0%
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!