C# Programming - Constructors - Discussion

Discussion Forum : Constructors - General Questions (Q.No. 9)
9.
Which of the following statements are correct about constructors in C#.NET?
  1. Constructors cannot be overloaded.
  2. Constructors always have the name same as the name of the class.
  3. Constructors are never called explicitly.
  4. Constructors never return any value.
  5. Constructors allocate space for the object in memory.
1, 3, 5
2, 3, 4
3, 5
4, 5
None of these
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
11 comments Page 2 of 2.

Komal Gupta said:   2 years ago
The Correct answer is 2, 3, 4 as per my understanding.

Explanation: We can create Explicit Constructors, but they cannot be called explicitly, because the constructor is invoked (called) when any object of that class has been created automatically (not explicitly).


Post your comments here:

Your comments will be displayed after verification.