Podcast
Questions and Answers
Which feature allows a subclass to provide a specific implementation of a method provided by its superclass?
Which feature allows a subclass to provide a specific implementation of a method provided by its superclass?
- Overloading
- Overriding (correct)
- Inheritance
- Encapsulation
What is another name for dynamic or runtime polymorphism?
What is another name for dynamic or runtime polymorphism?
- Early binding
- Late binding (correct)
- Static binding
- Method overloading
What must be the same in method overriding for dynamic polymorphism?
What must be the same in method overriding for dynamic polymorphism?
- Method name and method signature (correct)
- Return type and access modifier
- Number of parameters and parameter type
- Method name and return type
What does dynamic or runtime polymorphism rely on?
What does dynamic or runtime polymorphism rely on?
Which type of polymorphism is method overriding an example of?
Which type of polymorphism is method overriding an example of?
Flashcards are hidden until you start studying