题海让大学四年没有难题
白天模式登陆

题目详情

单选题 定义如下Exam类,以下哪个方法插入①处是不合法的.( ) class Exam { //插入一个方法 ① public int aMethod(int x, Person y) {//已经定义Person类 return 1; } }

A. public float aMethod(int a, Person b){ return 0;}

B. public int aMethod(int x,Person y,int x){ return 1;}

C. public float aMethod(Person y, float x){ return 0; }

D. private float aMethod(float a, float b, Person c){ return 0; }

面向对象程序设计课程封面

学科:面向对象程序设计

时间:2023-05-23 11:25:39

Copyright © 2022 津ICP备2021001502号