Obtaining Type Information from a Dynamic Value
Animal a = new Dog(); // following will print class Dog System.out.println("class is " + a.getClass().getName());
Animal * a = new Dog(); // will print the class Dog println("class is %s\n", typeid(*a).name());