c#在main函数中怎么调用无参的构造函数

2025-05-17 05:19:32
推荐回答(1个)
回答1:

class A()
{
public A()

{
}
}

int main()
{
A a=new A();//这里就是调用了无参构造函数

}
这种基本的问题网上搜下很多