(∗1) Write a template ptr_castthat works like dynamic_cast, except that it throws bad_cast rather than returning 0.
(∗2) Write a program that illustrates the sequence of constructor calls at the state of an object relative to RTTI during construction. Similarly illustrate destruction.