單項選擇題

接口INewInterface派生自接口IFoo和Ibar,類MyJob實現(xiàn)了接口InewInterface。如下所示:


請問MyJob實現(xiàn)接口的方式是否合法?() 

A.合法
B.不合法


您可能感興趣的試卷

你可能感興趣的試題

1.單項選擇題

已知接口IHello和類Base、MyClass的定義如下:

則下列語句在控制臺中的輸出為()

 

A.Hello in Base!Hello in Derived!
B.Hello in Derived!
C.Hello in derived!HelloinBase!
D.Hello in Base!