How do I get object if class is instantiated only like this new classname()

How do I get object if class is instantiated only like this new classname()