C# Programming - Constructors - Discussion
Discussion Forum : Constructors - General Questions (Q.No. 17)
17.
Which of the following statements is correct about constructors in C#.NET?
Discussion:
5 comments Page 1 of 1.
J.harika said:
1 decade ago
We can not declare a constructor as private we we declare like that we can not create object out side the class. I think the correct answer is option A.
Vidit said:
1 decade ago
We can not create any instance of static class but static class have static constructor which works to initialize the class data members.
Anynymous said:
9 years ago
@Karishma : Answer is C and A. You can not declare a constructor as private as well. The visual studio throws an error.
Sridhar said:
7 years ago
I think option is A, Why because constructor will declare always public not a private.
Karishma said:
1 decade ago
@J.Harika.
Correct answer is C only, and constructor can be declared as private.
Correct answer is C only, and constructor can be declared as private.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers