fill in the blanks to make the egg attribute strongly private and access it from outside of the class | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

fill in the blanks to make the egg attribute strongly private and access it from outside of the class

class Test: __egg = 7 t = Test() print(t._Test__egg)

20th Sep 2017, 4:48 PM
Niduk Madushan
Niduk Madushan - avatar
6 Answers
+ 1
fill in the blanks to make the egg attribute strongly private and access it from outside of the class class Test: __egg = 7 t = Test() print(t._Test__egg)
23rd Oct 2019, 4:49 AM
M.Subash
M.Subash - avatar
0
Pls help me
24th Nov 2017, 2:32 PM
iyappan k
iyappan k - avatar
0
plz share this ans
23rd Jun 2019, 5:44 AM
medarametla sravani
medarametla sravani - avatar
- 1
Answer : 1,2 : _ class Test: __egg = 7 t = Test() print(t._Test__egg)
4th May 2018, 7:52 AM
Aravind Kumar
- 2
Is it a question???
7th Oct 2017, 6:21 PM
Carlos Hidalgo
Carlos Hidalgo - avatar
- 2
Pls help me
24th Nov 2017, 2:33 PM
iyappan k
iyappan k - avatar