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.
Who had composed the Geeta Govinda or Gita Govinda?
Which minister is in charge of Health and Family Welfare?
Which act gave the power to declare ordinance to Viceroy for the first time?
Demand Bills are payable at sight
Which is not a component of central sector umbrella scheme Pradhan Mantri Kisan Sampada Yojana?
To empower women and recognize their contribution in society, UN Women in collaboration with Facebook organized a two-day event in Mumbai. The event wa...
The Sultan Azlan Shah Cup is associated with which sport?
What does the term 'Epigraphy' refer to?
The Book ‘Divine Life’ is written by
Who established the non-governmental organization Hitaishi India?