我是C#的新手。为什么要将main()方法放在“类”中呢?这个“所谓”的类不会创建任何对象。我不知道为什么他们把整个程序看作类和方法。还有,为什么main()函数被称为方法?显然它在类中,但我总是把它称为函数,就像这样:
using System;
public class MyApp // What is the purpose of this class?
{
public static void main() // Why is this called a method & not a function when no objects use it?
{
//Statements Here
}
}