Error: Many entry point, why?
Hi everyone, please help me with this:
I have a class named classA. classA has a main function:
class classA
{
public static void Main()
{
........
}
}
I have another class, classB, inherit classA. classB also has a main function
classB:
class classB:classA
{
public new static void Main()
{
......
}
}
I already use the word "new" for classB (public new static void Main() ), but the compiler (VS 2003)still says "Error: More than one entry point" . So's what's wrong with my code? Thanks.
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

shimtannyRank #3,312 · 434 pointsPosted Feb 22, 2005, 6:20 AM EST
choconlangthang6 pointsPosted Feb 22, 2005, 7:15 AM EST
abdullah115 pointsPosted Feb 22, 2005, 8:26 AM EST