对象的思考1
时间:2014-06-26 00:27:11
收藏:0
阅读:169
一个对象能自己能否作为自己的一个成员?
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication5 { class doubi { doubi d =new doubi(); int flag; public doubi() { flag = 0; Console.WriteLine(d.flag); } private void put() { Console.WriteLine(d.flag); } } class Program { static void Main(string[] args) { doubi db = new doubi(); } } }
无限循环...
评论(0)