Question
In object-oriented programming, what type of
polymorphism is achieved at runtime?ÂSolution
Method Overriding is an example of runtime polymorphism. It occurs when a subclass provides a specific implementation of a method that is already defined in its superclass. At runtime, the method that gets executed depends on the object type (the subclass instance), not the reference type (the superclass reference), thus achieving polymorphism. This allows for flexibility in code, as the same method can behave differently depending on the object calling it. Why Other Options are Incorrect: A) Method Overloading: This is an example of compile-time polymorphism, not runtime polymorphism. C) Operator Overloading: While it is a form of polymorphism, it is resolved at compile time and is not applicable to runtime polymorphism. D) Constructor Overloading: Constructor overloading is a type of compile-time polymorphism, as the constructor to be invoked is determined at compile time. E) Function Overloading: Similar to method overloading, this is also resolved at compile time, not at runtime.
Reliance Jio announced that it will be landing a multi-terabit India-Asia-Xpress (IAX) undersea cable system in _________ to directly connect the countr...
Consider the following statements:
I. Chief Minister’s Breakfast Scheme has recently been implemented by Andhra Pradesh.
II. 1,545...
Which of the following Investment Authority buys 20% stake in IIFL Home Finance for Rs 2,200 crores?
What is the name of the latest multi-role stealth guided missile frigate commissioned into the Indian Navy in December 2024?Â
What was the value of guarantees for overseas units in India’s outward FDI for May 2025?
How much funding has the Kerala government signed up for under the PM SHRI scheme?
Which of the above statements is/are correct about BIMSTEC:
1. The BIMSTEC intra-regional trade is significantly greater than ASEAN’s.
2...
Which of the following statements correctly describes the purpose of the MyGov platform under the Digital India Mission?
What is the total number of Indian institutions featured in QS World University Rankings 2026?Â
Who won the 2025 Miami Open Tennis Title (Men’s Singles)?