接口INewInterface派生自接口IFoo和Ibar,類MyJob實(shí)現(xiàn)了接口InewInterface。如下所示: 請(qǐng)問(wèn)MyJob實(shí)現(xiàn)接口的方式是否合法?()
A.合法 B.不合法
已知接口IHello和類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!
類MyClass定義如下: 請(qǐng)問(wèn)若為該類添加以下類型轉(zhuǎn)換操作符,是否合法?()