English

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

Advertisements
Advertisements

Question

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

Options

  • Access specifiers

  • Classes

  • Return type

  • Parameters

MCQ
Fill in the Blanks
Advertisements

Solution

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
  Is there an error in this question or solution?
2025-2026 (March) Official Board Paper
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×