例如:这个正确?我只是刚学,测试一些语法
using System;
namespace ca
{
class cs
{
private int i=9;
private int j=8;
private const int k = 99;
cs(int i, int j)
{ this.i = i; this.j = j; }
cs() { }
private int add()
{ return i + j; }
public static int Main()
{
int i = 1;
// int j = 2;
cs a=new cs();
Console.WriteLine("{0} {1} {2} {3} ",a.i,a.j,k,i);
return 0;
}
}
}