Multiple choice technology programming languages

Constructors name is not same as their class name

  1. True

  2. False

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

Constructors MUST have the exact same name as their class. This is a fundamental rule in languages like Java and C#. The constructor name matches the class name exactly, including capitalization. This is how the compiler identifies constructors.