✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Soit le code suivant :
class Vehicule { }class VehiculeMotorise extends Vehicule { }class Velo extends Vehicule { }class Automobile extends VehiculeMotorise { }class TestTypes3 { public static void main(String[] args) { VehiculeMotorise vehMot = null; Automobile auto = null; Vehicule veh = null; veh = new Automobile(); vehMot = new Automobile(); auto = (Automobile) veh; }}
Donner le type statique et le type dynamique de chaque variable...
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!