Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
2
Answers
Constructor
Kunal Desai
14y
4.3k
1
Reply
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?
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
string parsing
Displaying drive information