TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
chaithanya
NA
100
0
using constructors
Jul 30 2008 2:26 AM
I have a doubt in creating constructors
I have a program below
class classname
{
public void classname() \\constructor
{
Console.WriteLine("Hai");
}
public static void Main(string[] args)
{
classname obj=new classname();
}
}
while executing this it gives an error method should not have same name classname
what is reason and what is the solution for this?
Reply
Answers (
1
)
overriding TreeNode class
Advantages of abstraction