<< Chapter < Page | Chapter >> Page > |
Card 2 / 5:
polymorphism
The ability for a subclass instance to be used wherever its superclass (or implemented interface) is required. This is because all subclasses are abstractly equivalent to their superclasses. However, the use of different subclass instances in the same situation will produce differing resultant program behaviors because each subclass will behave in their own, differing concrete manners, even though those concrete behaviors are all abstractly equivalent. For more information, see the Wikipedia article on polymorphism and this web page on polymorphism and abstraction .
Previous Card | ← Previous Card Button |
Next Card | → Next Card Button |
Flip Card | ↑ / ↓ / Return / Space |
Notification Switch
Would you like to follow the 'Design patterns' conversation and receive update notifications?