how would the attribute __a of the class b be accessed from outside the class | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

how would the attribute __a of the class b be accessed from outside the class

pls answer

27th Nov 2020, 4:15 PM
Reyhan
Reyhan - avatar
2 Answers
+ 1
i think its python , you can access the private method like so(i think) : _b__a
27th Nov 2020, 5:27 PM
Med Amine Fh
Med Amine Fh - avatar
0
Please specify the lenguage
27th Nov 2020, 4:17 PM
Angelo
Angelo - avatar