Which of the following concepts allows a single interface to represent different methods in derived classes?
- Abstraction
- Encapsulation
- Inheritance
- Polymorphism
Polymorphism allows a single interface or method name to represent different implementations in derived classes. It enables flexibility and dynamic method dispatch in object-oriented programming.
Loading...
Related Quiz
- You are asked to create a plot comparing the distribution of a variable across different categories, highlighting the median and interquartile range. Which Seaborn plot would you choose?
- Functions that return an iterator yielding items instead of a list are called _______.
- When you want to give a different name to a module upon importing, you use an _______.
- How can you optimize the performance of static files (CSS, JS, Images) in a web application developed using Python frameworks?
- You are tasked with developing a neural network model for image classification. Which Python library would you prefer for developing such models and why?