a)构造方法必须被直接在字段后列出来.(可以在最前面.)
b) 构造方法必须没有参数.(可以无参、可以有参.)
c) 一个类只能有一个构造方法.(可以一个、可以有多个、也可以没有.)
d) 一个类能有好几个构造方法.(对)
e)构造方法返回一个指针给类.(通常是初始化各种数据,不会返回一个指针.)
请教一个关于java的英文题目.“1.Which of the following stat”
请教一个关于java的英文题目.“1.Which of the following stat”
1.Which of the following statements is true about constructors?
a) A constructor must be listed straight after the fields.
b) A constructor must have no parameters.
c) A class can have only one constructor.
d) A class can have any number of constructors.
e) A constructor returns a pointer to the class.
1d
能不能简单说明一下为什么其他的选项不对?
1.Which of the following statements is true about constructors?
a) A constructor must be listed straight after the fields.
b) A constructor must have no parameters.
c) A class can have only one constructor.
d) A class can have any number of constructors.
e) A constructor returns a pointer to the class.
1d
能不能简单说明一下为什么其他的选项不对?
其他人气:847 ℃时间:2020-04-04 11:54:19
优质解答
我来回答
类似推荐
- :Which of the following polynomials is in descending powers of
- Which of the following expressions are formal?
- 4.Which of the following are primitive Java types?
- 1) Which of the following forms are possible words of English?Solicit the help of an acquaintance and see if you agree o
- 一道英语阅读题目which of the following statements is NOT TRUE?
猜你喜欢
- 1如何用A4的纸折一个等边三角形
- 2(1)哪些生物膜之间通过囊泡间接联系?
- 3I spent last Sunday in the park(改为一般疑问句)
- 4甲乙丙丁四个人各拿了一个水桶到自来水龙头前等候打水,甲打水要用4分钟,乙打水要用1分钟,丙打水要用3分钟,丁打水要用2分钟,怎样安排四个人的打水顺序才能使他们花的时间最少?最少时间是多少?
- 5“the last batch student whom he taught were dood and outstanding”这是英语的哪种句式?
- 6“移”可以组什么词语?
- 7二分之一比四分之一比七分之一等于几比几比几
- 8英语作文:My Life In The Winter Holidays(用一般现在时)
- 9空间四点中,如果任意三点都不共线,那么有这四点可确定--个平面
- 10下列观点中,属于客观唯心主义的是())A、心外无物B、理在事先C、人为自然立法D、万物皆备于我