New course! Every coder should learn Generative AI!
Try a free lesson+ 3
Access Modifier
When should we use private access modifier?
2 Answers
+ 2
When you want a field/property/ method to be used only within the scope of the class
When should we use private access modifier?