GoConqr has a new look! Let us know what you think.

Flashcards

Polymorphism and Casting

joannazhang13 English 6 cards

Cards in this deck (6)

  1. 1PolymorphismMechanism of selecting the appropriate method for a particular object in a class hierarchy
  2. 2Selection of the correct method occurs:During the run of the program
  3. 3Dynamic bindingCompiler decides which instance method to call when the program is running
  4. 4Static bindingThe compiler decides which method to run at compile time.
  5. 5DowncastingCasting a superclass to a subclass type
  6. 6ClassCastExceptionThrown when there's an attempt to cast an object to a class of which it's not an instance

Information

Description
Flashcards on polymorphism and casting
Created by
joannazhang13
Views
45
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?