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.
Given below are two statements, one is labelled as Assertion A and other is labelled as Reason R
Assertion A: The temperature increases with incr...
Which of the following element promotes formation of vitamin A in plants?
Leaf area index influences
As per BIS standard, pasteurized milk should have standard plate count not exceeding
Arrange these soil particles as per their size (large to small)
(A) Clay
(B) Fine gravel
(C) Sand (course)
(D) Sand (fine)
Which of the following is not polyembryonic variety of mango?
What sugarcane pest leads to leaves turning yellow, being covered with black sooty mold, and the drying up of top leaves with lateral bud germination?
Irrigation water safely used for irrigation purpose have SAR value
Rocks containing free silica in abundance and is not combined with bases are called
Famine of Ireland was due to