Kunal  Desai

Kunal Desai

  • NA
  • 3
  • 0

Constructor

Mar 5 2010 7:08 PM
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)