lass Program
{
protected int x = 10;
protected int y = x*2;
public static void Main(string[] args)
{
Program text = new Program();
Console.WriteLine("{0},{1}", text.x, text.y);
}
}
{
protected int x = 10;
protected int y = x*2;
public static void Main(string[] args)
{
Program text = new Program();
Console.WriteLine("{0},{1}", text.x, text.y);
}
}
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.OleDb;
using System.Data;
class Program
{
protected int x = 10;
protected int y = 10*2;
public static void Main(string[] args)
{
Program text = new Program();
Console.WriteLine("{0},{1}", text.x, text.y);
}
}
{
protected int y;public void Program()
{
x = 10;
y = x * 2;
}