日期:2014-05-17 浏览次数:20861 次
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication4
{
class Program
{
public int a = 100;
public void min()
{
this.a--;
}
static void Main(string[] args)
{
test t = new test();
t.min();
Console.WriteLine(t.a);
Console.WriteLine(t.getA());
Console.Read();
}
}
class test : Program
{
int a = 8;
public void plus()
{
this.a++;
}
public int getA()
{
return base.a;
}
}
}