2012年2月24日

C# 細節(2)

摘要: protected 修飾符,要注意,子類所繼承的protected,是屬於自己的,與其他不相干。A 父類,B子類,C子類不管B,C如何修改protected變量,B和C互不影響,如:using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication1{ class Program { static void Main(string[] args) { B b = new B(); C c = new C(); ///////////////. 阅读全文

posted @ 2012-02-24 10:33 Mayvar 阅读(134) 评论(0) 推荐(0) 编辑

C# 細節(1)

摘要: string USerID; int MinRemainMold, currMold, RecordMold; public DialogResult showForm(string UserID, int _MinRemainMold, int _currMold, int _RecordMold) { int MinRemainMold_; this.USerID = UserID; this.MinRemainMold = _MinRemainMold; this.currMold = _currMold; this.RecordMold = _RecordMold; Console.. 阅读全文

posted @ 2012-02-24 10:03 Mayvar 阅读(122) 评论(0) 推荐(0) 编辑

导航