C# constructor
in c# can i decalare two default constructor in a single class
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Jul 7, 2012, 8:02 AM
If it were allowed to have two, then there would be no way that the compiler could differentiate between them.
Notice also that the system only provides a default constructor, if you don't declare any constructors yourself. However, you are still allowed to create a single constructor which takes no parameters, if you wish.