静态类和静态成员都是非OO的,只是有利于编程而保留的传统概念... ------解决方案-------------------- 个人理解:
写了个例子给你看一下,思考一下,
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
public class A
{
public static int x = 0;
public int y = 0;
}
class Program
{
static void Main(string[] args)
{
A a = new A();
A.x++;
a.y++;