Advertisements
Advertisements
प्रश्न
In a calculator which Java feature allows multiple methods named calculate) for the different operations?
पर्याय
abstraction
inheritance
encapsulation
polymorphism
MCQ
Advertisements
उत्तर
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
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
2025-2026 (March) Official Board Paper
