Multiple choice .net

Which is true for constructors in a class?

  1. All constructors must have the same number of parameters.

  2. All constructors must be the same parameter data type.

  3. Some constructors can have the same list of parameters.

  4. Only two constructors in a class can have the same list of parameters.

  5. No two constructors in a class can have the same list of parameters.

Reveal answer Fill a bubble to check yourself
E Correct answer
Explanation

Constructor overloading requires each constructor to have a unique parameter signature (number, order, or data types of parameters). If two constructors had identical parameter lists, the compiler couldn't determine which one to call when creating an object with those arguments.