हिंदी

In a calculator which Java feature allows multiple methods named calculate) for the different operations? - Computer Applications

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
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×