0
Why does it show error after removing the- private: string name- part of the code?
3 Respostas
0
because if you removed -private: string name-, you'll use a variable *name* that not declared in the class in the setter
0
So where can I declare the *name* variable I tried changing the code many times but couldn't
0
why do you want to remove it
it is declared as you do in your code