Which of the following statements about "const" is incorrect?
A、Objects,datamembers,andmemberfunctionscanbedefinedwithconst;
B、Theconstantobjectcanonlycalltheconstantmemberfunctionsofaclass;
C、Constantdatamemberscanonlybeinitializedbytheconstructorthroughtheinitializationlist.;
D、Constantmemberfunctionscancallnon-constantmemberfunctionsoftheclass
发布时间:2024-11-20 22:53:56