万能百科  > 计算机   > 

publicclassTest {}Whatistheprototypeofthedefaultconstructor?()

2021-05-06   

A.Test()

B.Test(void)

C.publicTest()

D.publicTest(void)

E.publicvoidTest()

正确答案:

参考CThecorrectanswertothisquestionisC.Thedefaultconstructoralwaystakesthesameaccessoftheclass.Inthiscase,theclassispublicandsodoesthedefaultconstructor.

词条内容仅供参考,如果您需要解决具体问题
(尤其在法律、医学等领域),建议您咨询相关领域专业人士。

标签