Method overriding allows a subclass to redefine a method of its parent class to provide more specific behavior. 1. Dynamic Binding: Overriding enables dynamic (runtime) polymorphism, allowing a subclass method to be invoked via a parent class reference. 2. Specialization: It customizes inherited behavior, making objects more precise in functionality. For example, a generic draw() method in a Shape class can be overridden by a Circle subclass to draw circles. 3. Liskov Substitution Principle: Overriding ensures subclass objects can seamlessly replace parent class objects without affecting system behavior. Option C exemplifies OOP’s adaptability and extendability by redefining methods at runtime. Why Other Options Are Incorrect: • A) Encapsulation: Manages data access, unrelated to redefining methods. • B) Method Overloading: Involves multiple methods with the same name but different parameters, unrelated to inheritance. • D) Abstraction: Focuses on defining essential features, unrelated to runtime behavior customization. • E) Composition: Relates to object containment, not method redefinition.
How many Puranas are there according to Hindu tradition?
What is the minimum denomination for issuing a Certificate of Deposit (CD)?
What is the classification for balances in savings/current accounts not operated for 10 years, or term deposits not claimed within 10 years from the mat...
Who was the last ruler of Mauryan dynasty?
How many tiger reserves are there in India ?
In which state is the 'Hampi Dance Festival' celebrated?
In which of the following states/ut the Union Minister Sarbananda Sonowal has inaugurated the ‘Ayush Utsav’ recently?
Which of the following is the Eastern most district of Uttar Pradesh?
In which state is Kolleru Lake located?
Who was appointed as the chairman of the advisory committee to assist the administrators appointed by the Supreme Court?