1(xi)
In a calculator which Java feature allows multiple methods named calculate() for the different operations?
- (a)abstraction
- (b)inheritance
- (c)encapsulation
- (d)polymorphism
Show SolutionHide Solution↓
polymorphism
Reason — Polymorphism in Java allows multiple methods with the same name but different parameters (method overloading). In a calculator, different operations like addition, subtraction, etc., can be implemented using methods with the same name calculate() but with different parameter lists, which is a feature of polymorphism.