logo

Crowdly

class Parent {     static void afficher() {         System.out.println("Parent")...

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

class Parent {

    static void afficher() {

        System.out.println("Parent");

    }

}

class Enfant extends Parent {

    static void afficher() {

        System.out.println("Enfant");

    }

}

public class Test {

    public static void main(String[] args) {

        Parent p = new Enfant();

        p.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!