Giventhefollowingcodefragment:publicvoidcreate(){VectormyVect;myVect=newVector();}Whichofthefollowingstatementsaretrue?()

A.Thedeclarationonline2doesnotallocatememoryspaceforthevariablemyVect. B.Thedeclarationonline2allocatesmemoryspaceforareferencetoaVectorobject. C.Thestatementonline2createsanobjectofclassVector. D.Thestatementonline3createsanobjectofclassVector. E.Thestatementonline3allocatesmemoryspaceforanobjectofclassVector.

时间:2023-09-10 17:50:42

相似题目