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.....
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/