Created by joannazhang13
over 9 years ago
|
||
Question | Answer |
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 |
Want to create your own Flashcards for free with GoConqr? Learn more.