Search the courses, subjects, tracks, games and features, or jump straight to a page.
4 cards from this section. Quick, good the night before a test.
What is polymorphism?
Think about method flexibility.
Can two methods in the same class have the same name?
Consider how methods are differentiated.
What does polymorphism allow us to do?
What happens when method names clash?
True or False: Method overriding can help implement runtime polymorphism.
Consider when subclass methods replace superclass ones.
Create a class hierarchy that demonstrates polymorphism by implementing a method in a base class and overriding it in multiple subclasses.
Use an animal theme for fun!
Construct a program that utilizes method overloading with a series of mathematical operations, providing at least four different implementations.
Consider how numbers can differ in type.
6 more questions in this section. Enroll free to practise them all.
Enroll free