Explain C++ virtual dispatch and object lifetime | J.P. Morgan Interview Question