मराठी

In constructor overloading all constructors should have the same name as of the class but with a different set of ______. - Computer Applications

Advertisements
Advertisements

प्रश्न

In constructor overloading all constructors should have the same name as of the class but with a different set of ______.

पर्याय

  • Access specifiers

  • Classes

  • Return type

  • Parameters

MCQ
रिकाम्या जागा भरा
Advertisements

उत्तर

Parameters

Explanation:

In constructor overloading, all constructors have the same name but different parameter lists (they may differ in number, type, or order of parameters), so the compiler can distinguish which constructor to call. Overloading is not done by return type or access specifier.

shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
2025-2026 (March) Official Board Paper
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×