x是類(lèi)MyClass的變量,該類(lèi)定義如下: 則調(diào)用x.ToString()的返回值為()
A."test x" B."x" C."test MyClass" D.""
接口INewInterface派生自接口IFoo和Ibar,類(lèi)MyJob實(shí)現(xiàn)了接口InewInterface。如下所示: 請(qǐng)問(wèn)MyJob實(shí)現(xiàn)接口的方式是否合法?()
A.合法 B.不合法
已知接口IHello和類(lèi)Base、MyClass的定義如下: 則下列語(yǔ)句在控制臺(tái)中的輸出為()
A.Hello in Base!Hello in Derived! B.Hello in Derived! C.Hello in derived!HelloinBase! D.Hello in Base!