- 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_ )

17th Feb 2018, 3:31 PM
Joseph
4 Answers
+ 2
@property is not a answer 😂😂😂😂
7th Dec 2020, 5:56 PM
Turikumana Isaie
Turikumana Isaie - avatar
0
bad answers
14th Dec 2021, 2:34 PM
Xolmirzayev Shaxriyor
Xolmirzayev Shaxriyor - avatar
- 2
(Correct Answer) class Test: __egg = 7 for 1st (# Two underscores with egg) print(t._test__egg) (# t. "underscore" test " underscore (2times) then egg)
22nd May 2020, 9:32 PM
Shahzain Ahmed
Shahzain Ahmed - avatar
- 17
class Test: __egg = 7 t = Test() print(t._Test__egg)
24th Jul 2018, 12:26 PM
Christopher
Christopher - avatar