¡GoConqr estrena diseño! Cuéntanos qué te parece.

Fichas

Polymorphism

nhunsdale02 Programming I Masters Inglés 9 fichas

Fichas del conjunto (9)

  1. 1Polymorphism enables you to program in the _____, rather than in the _____general, specific
  2. 2What are the 2 types of polymorphism?- Compile Time
    - Run Time
  3. 3What is compile time polymorphism?Method Overloading
  4. 4What is Runtime polymorphism?uses inheritance and interfaces
  5. 5Runtime Polymorphism enables programs to process objects that share the same _____ as though they are all objects of that superclasssuperclass
  6. 6Create a dog object that is the subclass of animal :Animal animal1 = new Dog();
  7. 7What is virtual method invocation?Java calls the appropriate method for the object that is referred to in each variable
  8. 8Create a polymorphic array of animals :String[] animals = {"Dog", "Cat", "Mouse"};
  9. 9Cycle through that array :for (Animal a : animals){
    a.makeANoise();
    }

Información

Descripción
Masters Programming I Fichas sobre Polymorphism, creado por nhunsdale02 el 06/06/2014.
Creado por
nhunsdale02 · jun 2014
Actualizado
6 abr 2018
Visitas
14
Valoración

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?