首页 > 电气工程及其自动化> 发电厂电气部分
题目内容 (请给出正确答案)
[主观题]

Given the uncompleted code of a class: class Person { String name, department; int age; public P

Given the uncompleted code of a class:

class Person {

String name, department;

int age;

public Person(String n) { name = n; }

public Person(String n, int a){ name = n; age = a; }

public Person(String n, String d, int a) {

// doing the same as two arguments version of constructor

// including assignment name=n,age=a

department = d;

}

}

Which expression can be added at the "doing the same as…" part of the constructor?

A.Person(n,a); B.this(Person(n,a));

C.this(n,a); D.this(name,age);

查看答案
答案
收藏
如果结果不匹配,请 联系老师 获取答案
您可能会需要:
您的账号:,可能还需要:
您的账号:
发送账号密码至手机
发送
安装优题宝APP,拍照搜题省时又省心!
更多“Given the uncompleted code of …”相关的问题
第1题
She told me that the examination () on Friday.

A.is given

B.will be given

C.would be given

D.would have given

点击查看答案
第2题
He moved at the meeting that more thoughts____to the reconstruction of this are.

A.will be given

B.are to be given

C.would be given

D.should be given

点击查看答案
第3题
All hope of finding the missing ship was ______ and the search abandoned.

A.given on

B.given up

C.given off

D.given away

点击查看答案
第4题
On no account ______ to a small child. A.any money should be given B.some money gives C.sh

On no account ______ to a small child.

A.any money should be given B.some money gives

C.should any money be given D.some money should given

点击查看答案
第5题
Johnson preferred ______ heavier work to do.A.to be givingB.to have givenC.to be givenD.ha

Johnson preferred ______ heavier work to do.

A.to be giving

B.to have given

C.to be given

D.having given

点击查看答案
第6题
A.availableB.givenC.requiredD.ready

A.available

B.given

C.required

D.ready

点击查看答案
第7题
A.givenB.answeredC.satisfiedD.responded

A.given

B.answered

C.satisfied

D.responded

点击查看答案
第8题
A: Remember the first time We met, Mike? B: of course I do. you _______ a lecture.
A.had given

B.were giving

C.gave

D.had given

点击查看答案
第9题
If _____ the same treatment again, he’s sure to get well.

A.giving

B.give

C.given

D.being given

点击查看答案
第10题
Most laboratory and field studies of human behavior. ______ taking a situational photograph at a given time and in a given place.

A.attach

B.compose

C.involve

D.enclose

点击查看答案
第11题
I ______ ten minutes to decide whether I should reject the job. A.was giving B.was given C.gave D

I ______ ten minutes to decide whether I should reject the job.

A.was giving B.was given C.gave D.had given

点击查看答案
退出 登录/注册
发送账号至手机
密码将被重置
获取验证码
发送
温馨提示
该问题答案仅针对搜题卡用户开放,请点击购买搜题卡。
马上购买搜题卡
我已购买搜题卡, 登录账号 继续查看答案
重置密码
确认修改