Advertisements
Advertisements
Question
In a calculator which Java feature allows multiple methods named calculate) for the different operations?
Options
abstraction
inheritance
encapsulation
polymorphism
MCQ
Advertisements
Solution
polymorphism
Explanation:
Polymorphism allows the same method name (like
calculate()) to perform different tasks based on the input parameters. This specific type is called Method Overloading, which is a core part of compile-time polymorphism.shaalaa.com
Is there an error in this question or solution?
2025-2026 (March) Official Board Paper
