Polymorphism in OOP is primarily beneficial because it allows objects of different classes to be treated as objects of a common superclass. This enables objects to be used interchangeably, which is useful when designing flexible and reusable code. In OOP, polymorphism is achieved through method overriding (in inheritance) or interfaces, allowing for the same method name to behave differently depending on the object type invoking it. This leads to more generic code, easier maintenance, and greater extensibility. For instance, a superclass Shape could define a method draw() . Subclasses like Circle and Square would each override the draw() method, but polymorphism allows a reference of type Shape to invoke the draw() method of either subclass without needing to know which specific subclass it is dealing with. Why Other Options Are Incorrect:
The SI unit of Pressure is
Water gets cooled, when ice is immersed in it. It is because of the phenomenon of
What is the power of a lens whose focal length is 1 m?
What is the SI unit for measuring electrical capacitance?
Which one is the largest Island of Japan?
Which statement is true regarding infrasound?
Photovoltaic cells are:
Which of the following dyes is used for colouring Paper and typewriters?
Which of the following instruments is correctly matched with its function?
I) Voltmeter - Measures potential difference
II) Ammeter - Me...
Which statement about the properties of light and sound is incorrect?