Start learning 50% faster. Sign in now
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.
Which individual has served as the Vice President of India on two separate occasions?
The Reserve Bank of India plans to implement a 5% run-off factor on digitally accessible retail deposits to manage what type of risk?
Match List-I (Centre) & List-II (Industry) and choose the correct answer from the codes given below:
Who is referred to as "Udanpari"?
Which of the following private sector bank has tied up with Samsung pay
Consider the following statements:
Assertion (A): In the visible spectrum of light, red light has more energy than green light.
Reason (R)...
Which lake is the largest freshwater lake by surface area in the world?
Mount Merapi, an active stratovolcano, is located in which country?
Japanese researchers have proposed to use which material to eliminate space junk?
Who served as the editor of "The Hindu Review" journal?