Back to problems

C++ Virtual / Destructor / Pointer Review

Object-Oriented Programming · JPMorgan · Easy

Requirements Interpret C++ code fragments and determine their resulting output or runtime behavior. Describe how calls to virtual member functions are selected. Describe destructor execution, including the hazards created by dangling pointers. Distinguish C++ pointer behavior from reference behavior. Notes When discussing virtual dispatch, identify the expression's static type, the object's runtime type, and whether the relevant base-class member is marked virtual. When…

Checking your access…