I created class Class and I want the function PrintObjectName to print out the object name.
By calling "SomeObject.PrintObjectName();" I'm expecting that console will print "SomeObject". How to achieve this?
class Class
{
public:
    PrintObjectName()
    {
        cout<<OBJECTNAME;
    }
};
int main()
{
    Class SomeObject;
    SomeObject.PrintObjectName();
    return 0;
}```
