天天看點

Question 48: In C++, which of the following statements accurately describe a base class destructor calling a virtual function ov

    A. The base class destructor calls the virtual function override of the derived class through the vtable.

    B. The base class destructor cannot call the virtual function override of the derived class because the derived class portion of the data may be in an undefined state.

    C. The base class destructor calls the virtual function of the base class and not of the derived class.

    D. The C++ compiler maintains the overridden virtual function pointers in a separate structure when it sees the call in a destructor. The call is then resolved through this structure.

    E. The language does not permit calling a virtual function override in either a constructor or the destructor of the base class.

B     C