接口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{};}
您可能感興趣的試卷
你可能感興趣的試題
A.[Bits]
B.[Tags]
C.[Int32]
D.[Flags]
A.GetHashCode
B.Typeof
C.Parse
D.ToString

最新試題
在WinForms窗體中,單選按鈕(RadioButton)控件的()屬性用于獲取或設(shè)置控件是否已選中。
在ADO.NET中,下列關(guān)于連接對(duì)象Connection的說(shuō)法錯(cuò)誤的是()
在WinForms中,已知在一個(gè)叫imgListBook的ImageList控件中有一張圖片,為了設(shè)置一個(gè)名為picBook的PictureBox控件的Image屬性,下列代碼正確的是()
在C#WinForms程序中,以下不屬于Label屬性的一項(xiàng)是()
在ADO.NET中,DataReader對(duì)象用于從數(shù)據(jù)庫(kù)中檢索只讀的數(shù)據(jù),使用()語(yǔ)句可以創(chuàng)建一個(gè)DataReader對(duì)象。