在空白处选择填写正确代码
- interface Parent{
- public int count(int i);
- }
- public class Test implements Parent {
- public int count(int i){
- return i % 9;
- }
- }
- public static void main(String[] args){
- ________________
- int i = p.count(20);
- }
- }
- A. Test p = new Test();
- B. Parent p;
- C. Parent p = new Parent();
- D. Test p = new Parent();
复制代码
|
|