using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
A[] a = new A[10];
}
}
public class A
{
static int x;
public A()
{
System.Console.WriteLine("default A");
}
public A(int x1)
{
x = x1;
System.Console.WriteLine("parametered A");
}
public void Fun()
{
Console.WriteLine("asd");
}
}
}
为什么我的默认构造函数没有在这里被调用?我究竟做错了什么?