C#中MyClass为一自定义类,其中定义了以下方法 public void Hello() { ... } 使用以下语句创建了该类的对象,并使变量obj引用该对象: MyClass obj = new MyClass(); 那么,( )能访问类MyClass的Hello方法?
A.
obj.Hello();
B.
obj::Hello();
C.
MyClass.Hello();
D.
MyClass::Hello();
拍照语音搜题,微信中搜索"皮皮学"使用
参考答案:
参考解析:
知识点:
皮皮学刷刷变学霸
举一反三
【简答题】(1)Sunny English Club For students 16:00--18:00 Every Saturday 200 yuan a mouth (2) 9 Zhou Yu Street Tel:3785290 Foreign teachers, English songs and films, and more! (3)Ocean Museum9: 00- 17:00 From T...
【单选题】Sunny English Club For students 16:00 - 18:00 Every Saturday 200 yuan a month 9 Zhou Yu Street Tel: 3785290 Foreign teachers, English songs and films and more! Ocean Museum 9:00-17:00 From Thursday to...
【简答题】阅读理解。 Sunny English Club For students 16:00 ~ 18:00 Every Saturday 200 yuan a month 9 Zhou Yu Street Tel: 3786290 Foreign teachers, English songs and films and more! Ocean Museum 9:00~17:00 From Thurs...
【简答题】阅读理解。 Sunny English Club For students 16:00 ~ 18:00 Every Saturday 200 yuan a month 9 Zhou Yu Street Tel: 3786290 Foreign teachers, English songs and films and more! Ocean Museum 9:00~17:00 From Thurs...
【简答题】Sunny English Club For students. 16:00---18:00 Every Saturday 200 yuan a month 9 Zhou Yu Street Tel: 3785290 Foreign teachers, English songs and films ,
and more! Ocean
Museum 9:00—17:00 From Thursday...
【简答题】阅读理解。 Health Centre 9:00-17:30 16 Yongle Street Tel: 3801452 Free exam for those who are over sy years old! Sunny English club For students 16:00-18:00 Every Saturday 200 yuan a month 9 Zhouyu St...