I want to make a constchar in a class.
I mean that if I create two objects of a class, A & B;
If I set the value for A.Char & B.Char, it will be a constant value.
The class has a constant member of type const char*, which is initialized using the initializer list in the constructor. Due to it being constant, you cannot change it later, so A.str="bar"; won't work. Which seems to be what you wanted.