How to deterime run-time type (dynamic type) of an object that is referred to by
a pointer or a reference?
typeid operator in C++. This operator provides a program the ability to
retrieve the actual derived type of the object referred to by a pointer or a
reference. Let’s see some example: