string name;
cout<< name << endl;

Will the above statement display an object?

I was told that object. (class data member)
But here we are passing direct to a string object. And It works too. How?