In C++, create a three-level hierarchy of classes with default constructors, along with destructors, both of which announce themselves to cout. Verify that for an object of the most derived type, all three constructors and destructors are automatically called. Explain the order in which the calls are made.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here