2
Answers

Constructor

Ask a question
Kunal  Desai

Kunal Desai

14y
4.3k
1
I was trying to declare a constructor in C# and I got following error:

Error      1      'ParentClass': member names cannot be the same as their enclosing type      

Hows that? Isn't constructor supposed to  have the same name as the class name?

Answers (2)