- 4
"Fill in the blanks to make the egg attribute strongly private and access it from outside of the class.
Could someone pls answer the below?: class test: __ egg = 7 t = Test() print(t._ Test_ )
4 Respuestas
+ 2
@property is not a answer 😂😂😂😂
0
bad answers
- 2
(Correct Answer)
class Test:
__egg = 7 for 1st (# Two underscores with egg)
print(t._test__egg) (# t. "underscore" test " underscore (2times) then egg)
- 17
class Test:
__egg = 7
t = Test()
print(t._Test__egg)