Virtual functions allow you to
A、createanarrayoftypepointer-to-baseclassthatcanholdpointerstoderivedclasses.
B、createfunctionsthatcanneverbeaccessed.
C、groupobjectsofdifferentclassessotheycanallbeaccessedbythesamefunctioncode.
D、usethesamefunctioncalltoexecutememberfunctionsofobjectsfromdifferentclasses.
发布时间:2026-02-01 05:31:31