Thank you xpi0t0s for your responce.

But I am sorry that I posted in a wrong forum.. I got this doubt when I am using c#.
I will start a new thread in C# as well.

Still I would like to know how this will happen in C++ as well..

Is it mandatory in C++ that a class should have at least one public or protected constructor..