Whichtwostatementsaretrueregardingthecreationofadefaultconstructor?()

A.Thedefaultconstructorinitializesmethodvariables. B.Thecompileralwayscreatesadefaultconstructorforeveryclass. C.Thedefaultconstructorinvokestheno-parameterconstructorofthesuperclass. D.Thedefaultconstructorinitializestheinstancevariablesdeclaredintheclass. E.Whenaclasshasonlyconstructorswithparameters,thecompilerdoesnotcreateadefaultconstructor.

时间:2024-05-06 16:10:45

相似题目