3 ms·
The language is not relevant to the question. Making variables and methods private means making them inaccessible outside the class and I gave the typical reas
by mytailorisrich 4y ago
The language is not relevant to the question.
Making variables and methods private means making them inaccessible outside the class and I gave the typical reasons/best practices for that.
- Saphyel 4y ago> Making variables and methods private means making them inaccessible outside the class and I gave the typical reasons/best practices for that. The point they are making is in python there's no private method, everything is public. There's only a convention of "avoid using anything starting with "_"
- mytailorisrich 4y agoYes but that point is irrelevant to the question...