___________ allows objects of different classes to be treated as objects of a common superclass.
- Abstraction
- Encapsulation
- Inheritance
- Polymorphism
Polymorphism refers to the ability of different classes to be treated as objects of a common superclass through method overriding and method overloading. It allows for code flexibility and reusability by enabling the use of a single interface to represent different data types or objects.
Loading...
Related Quiz
- Which layer of the OSI Model is responsible for routing and forwarding packets?
- What is the role of Boyce-Codd Normal Form (BCNF) in database design?
- In JavaScript, _________ is used to represent an object that is accessed using the dot notation.
- You're tasked with optimizing the performance of a large-scale React application. How would you leverage code splitting and lazy loading to improve load times?
- The process of rearranging the contents of a file to optimize storage space is known as ___________.