0

Can We Use Getter & Setter In C++ also,Just Like C# & Java ??

I hadn't used getters and setters in C++ , that's why I'm Asking ... I think It Is Used ...may be.....

11th Jul 2019, 3:07 AM
Anurag Singh
Anurag Singh - avatar
1 Antwort
+ 1
Yes, you can create getters and setters for private members of a class. For example, consider https://www.sololearn.com/learn/CPlusPlus/1714/
11th Jul 2019, 3:57 AM
Solo Wanderer 4315
Solo Wanderer 4315 - avatar