-->
当前位置:首页 > 题库

单选题:Given code below:

Luz5年前 (2021-05-10)题库1105
Given code below:
```Java
class Shape {}
class Circle extends Shape() {}
class Rectangle extends Shape() {}
```
Which one below is NOT able to accept both `List` and `List`?
@[B](2)

A. `void f(List list);`
B. `void f(List list);`
C. `void f(List list);`
D. `void f(List list);`





A.`void f(List list);`
B.`void f(List list);`
C.`void f(List list);`
D.`void f(List list);`


答案:B