Start learning 50% faster. Sign in now
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.
72 85 103 126 154 ?
...9 4.5 4.5 9 36 ?
Direction: Which of the following will replace ‘?’ in the given question?
5, 18, ‘?’, 126, 296, 586, 1044
7 15 44 89 ? 533
...130 155 146 195 186 ?
...1335 737 355 141 47 ?
...D irection: Which of the following will replace ‘?’ in the following series
460, 462, ‘?’, 467.5, 470.97
...16 18 14 20 12 ?
...