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?
- Constructors cannot be overloaded.
- Constructors always have the name same as the name of the class.
- Constructors are never called explicitly.
- Constructors never return any value.
- Constructors allocate space for the object in memory.
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).
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:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers