Give each class a typeid function