Computer Science, asked by rekhasubbiah04, 5 hours ago

what is public and private data member i n Python?​

Answers

Answered by divyajadhav66
6

\huge \red{❥} \{\mathtt{{\purple{\boxed{\tt{\pink{\red{A}\pink{n}\orange{s}\green{w}\blue{e}\purple{r᭄}}}}}}}

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 razachhotu111
0

Answer:

The varibles which are defined inside the class in public by default.

Hope I Help You

Similar questions