|
|
Creado por joannazhang13
hace más de 10 años
|
|
| Pregunta | Respuesta |
| Polymorphism | Mechanism of selecting the appropriate method for a particular object in a class hierarchy |
| Selection of the correct method occurs: | During the run of the program |
| Dynamic binding | Compiler decides which instance method to call when the program is running |
| Static binding | The compiler decides which method to run at compile time. |
| Downcasting | Casting a superclass to a subclass type |
| ClassCastException | Thrown when there's an attempt to cast an object to a class of which it's not an instance |
¿Quieres crear tus propias Fichas gratiscon GoConqr? Más información.