|
|
Erstellt von joannazhang13
vor mehr als 10 Jahre
|
|
| Frage | Antworten |
| 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 |
Möchten Sie mit GoConqr kostenlos Ihre eigenen Karteikarten erstellen? Mehr erfahren.