Polymorphism (OOP) (OCR A-Level Computer Science): Quizzes
📚Quizzes
Practise the questions
12 questions from this quiz
ShowHide
Practise the questions
12 questions from this quiz
What does the term 'polymorphism' literally mean?
What does the term 'polymorphism' literally mean?
Many forms
What does polymorphism allow in OOP?
What does polymorphism allow in OOP?
Treat objects of different classes as same
When does method overriding occur?
When does method overriding occur?
At runtime
What does method overriding allow child classes to do?
What does method overriding allow child classes to do?
Provide specific implementation of method
What characterises method overloading?
What characterises method overloading?
Same name, different parameters
Is true method overloading directly supported in Python?
Is true method overloading directly supported in Python?
No, not directly supported
What do interfaces ensure for different classes?
What do interfaces ensure for different classes?
Classes provide the same methods
Which benefit does polymorphism provide regarding redundancy?
Which benefit does polymorphism provide regarding redundancy?
Reduces redundancy via shared methods
What must match exactly when overriding methods?
What must match exactly when overriding methods?
Method name and parameters
What happens if you create multiple methods with the same name in Python?
What happens if you create multiple methods with the same name in Python?
Overwriting rather than overloading
What promotes flexibility in polymorphism?
What promotes flexibility in polymorphism?
Working with different types together
What do abstract classes promote by enforcing method consistency?
What do abstract classes promote by enforcing method consistency?
Polymorphism across classes
