Why can't constructor be declared as static in c++?
问题 I have recently finished reading the 1st Vol. of Thinking in C++ by Bruce Eckel and have now turned to applying the knowledge to some practical use. I was recently working with static member functions and tried making the constructor static, for which the compiler was unhappy. I checked for the reason in the book but couldn't find any. Can anyone explain why? P.S.: After seeing some responses, I would like to mention that the confusion arises from my knowledge that C# (and Java) allows