java中constructor的问题
nJava,whichofthefollowingistrueaboutconstructors?(a)Constructorsmustbedeclaredforever...
n Java, which of the following is true about constructors?
(a) Constructors must be declared for every class.
(b) Constructors cannot return a value.
(c) Constructors can only accept primitive Java types as parameters.
(d) Constructors can only return 0 or a negative integer.
请帮我解释一下吧! 展开
(a) Constructors must be declared for every class.
(b) Constructors cannot return a value.
(c) Constructors can only accept primitive Java types as parameters.
(d) Constructors can only return 0 or a negative integer.
请帮我解释一下吧! 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询