Original Post
Hi, I know the benefits of having const-correct classes and functions but what would be its overhead or drawback? Also I find that something like const class test { int a; }; is allowed.What would be the meaning of this class?You can even create an object of class test and assign its data member a some value. Thx