类的默认值
using System;/*namespace aaa
{
class @aaa
{
public static void Main(string[] args)
{
int[,,] a=new int[3][ , ];
a[0]={2,8};
a[1]={9,7};
a[2]={10,7};
Console.WriteLine("{0}",a[0,0]);
}
}
}*/
namespace bbb
{
class cccc
{
public int cccc()
{
return 5;
}
public static void Main()
{
cccc a=new cccc();
Console.WriteLine("{0}",a);
}
}
}
有什么办法可以让Console.WriteLine("{0}",a)输出值为5呢??