單項(xiàng)選擇題設(shè)計(jì)類MyClass時(shí),若希望字段data只能被同一程序集的其他類訪問,可將該字段的詢問修飾符設(shè)為()
A.internal
B.protected
C.private
D.public
E.internal protected
您可能感興趣的試卷
你可能感興趣的試題
1.單項(xiàng)選擇題
接口IMyInterface中只包含一個(gè)屬性MyName.該屬性滿足:
公有
可讀可寫
字符串類刑
則該接口的定義應(yīng)為()
A.interface MyInterface{string MyName{get;set;}}
B.interface MyInterface{int MyName{get;set;}}
C.interface MyInterface{string MyName{get{}set{}}
D.interface MyInterface{string MyName{get{};set{};}
2.單項(xiàng)選擇題為了創(chuàng)建一個(gè)位標(biāo)記類型,應(yīng)在枚舉類型的定義前附加()屬性。
A.[Bits]
B.[Tags]
C.[Int32]
D.[Flags]

最新試題
使用C#開發(fā)數(shù)據(jù)庫應(yīng)用程序,為了訪問和操作數(shù)據(jù)庫,ADO.Net提供了兩個(gè)重要的組件()
題型:多項(xiàng)選擇題
下列關(guān)于數(shù)據(jù)集DataSet的說法,錯(cuò)誤的是()
題型:單項(xiàng)選擇題
在C#WinForm中,用于創(chuàng)建工具欄的控件是()
題型:單項(xiàng)選擇題
在C#WinForms程序中,以下關(guān)于Timer控件說法正確的是()
題型:單項(xiàng)選擇題
在C#WinForm程序中,以下不能綁定DataGridView數(shù)據(jù)源的是()
題型:單項(xiàng)選擇題