日期:2014-05-17  浏览次数:20713 次

小小新手,问题有点白痴,望解答
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Collections;

namespace ConsoleApplication4
{
    class fuzhi
    {
     private   int a=0;
     private   int b=0;
        public int A
        {
            get {
                return a;
            }
            set {
                a = value;
            }
        }
        public int B
        {
            get {
                return b;
            }
            set {
                b = value;
            }
        }
    }
    class add {
        fuzhi b=new fuzhi();
        public int d (){
            return b.A + b.B;
        }
    }
    class Program
    {
       
        static void Main(string[] args)
        {
            //Program program = new Program();
            fuzhi a = new fuzhi();