Printing class name

I have a object of a class. I would like to print the class name. How to print the class name using object handle?

In reply to Jyothi_G:

This isn’t possible out of the box. One vendor provides a vtypename system function for this, but this isn’t standard.

In reply to Jyothi_G:

you may play some virtual trick in your new() function.
let base / derived class have own virtual task, which updates its class_name.
then you can use handle to have real object name
if you just want handle’s class name, then don’t use virtual.