C++ Classname Function() : <p>I was recently giving an online quiz on c++ and a question came that had similar syntax as</p>

<pre><code>class className
{
     public:
     constructor()
     {
         print("ABC");
     }
}

int main()
{
    className ABC();
    return 0;
}
</code></pre>

<p>I thought it would not compile but rather it compiled and ran without having any effect, I am interested as to what feature this is and in which case do we use this?</p>
