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

单选题:下面中哪个可以在Test的子类中使用:( )

Luz5年前 (2021-05-10)题库2218
下面中哪个可以在Test的子类中使用:( ) @[C](2)

> class Test {
protected int method (int a, int b) { return 0; }
>
> }

A. int method (int a, int b) { return 0; }
B. private int method (int a, int b) { return 0; }
C. private int method (int a, long b) { return 0; }
D. public short method (int a, int b) { return 0; }





A.int method (int a, int b) { return 0; }
B.private int method (int a, int b) { return 0; }
C.private int method (int a, long b) { return 0; }
D.public short method (int a, int b) { return 0; }


答案:C