logo

Crowdly

Parmi les 4 affectations présentes dans le main, combien sont incorrectes ?... ...

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

Parmi les 4 affectations présentes dans le main, combien sont incorrectes ?...

class Animal { }

class Mammifere extends Animal { }

class Reptile extends Animal { }

class Felin extends Mammifere { }

class Zoo {

public static void main(String[] args) {

Animal a = new Felin();

Mammifere m1 = a;

Felin f = (Felin) a;

a = m1;

}

}

More questions like this

Want instant access to all verified answers on moodle.univ-lr.fr?

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