what is public and private data member i n Python?
Answers
Answered by
6
The variables which are defined inside the class is public by default. These variables can be accessed anywhere in the program using dot operator. A variable prefixed with double underscore becomes private in nature. These variables can be accessed only within the class.
Answered by
0
Answer:
The varibles which are defined inside the class in public by default.
Hope I Help You
Similar questions