- 28

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

28th Jun 2017, 2:24 PM
BONGANI INNOCENT MABUZA
BONGANI INNOCENT MABUZA - avatar
42 Respuestas
+ 8
Answer: class Test: __egg = 7 t = Test() print(t._Test__egg)
19th Nov 2019, 7:40 AM
Catalin Cristian Cristea
Catalin Cristian Cristea - avatar
+ 4
(Correct Answer) class Test: __egg = 7 for 1st (# Two underscores with egg) print(t._test__egg) (# t. "underscore" test " underscore (2times) egg)
22nd May 2020, 9:31 PM
Shahzain Ahmed
Shahzain Ahmed - avatar
+ 1
class Test: _ _ egg = 7 t = Test() print(t._Test__egg)
7th May 2021, 6:11 PM
LAKSHMI NARAYANAN M
LAKSHMI NARAYANAN M - avatar
0
please give the proper answer!..
10th May 2020, 7:07 AM
KOUSHIKA K S
KOUSHIKA K S - avatar
0
can someone explain the answer?
24th May 2021, 5:22 PM
Kmiilo Berrio Montoya
Kmiilo Berrio Montoya - avatar
0
Fill in the blanks to make the egg attribute strongly private and access it from outside of the class. answer : class test: __egg = 7 t = test() print(t._test__egg)
8th Jun 2021, 11:06 AM
Madhavareddy
Madhavareddy - avatar
0
This is the real answer: class Test: _ _ egg = 7 t = Test() print(t. _ Test _ _ egg) just place 1 underscore after 't.' then 2 underscores and egg on the last point.
4th Dec 2021, 3:57 PM
Thuwayba Ahmed
Thuwayba Ahmed - avatar
0
Guys, I figured it out, you have to put 2 __ and then write egg yourself. So you have to write it like this: __egg Then it works
3rd Jan 2022, 3:52 PM
Thuwayba Ahmed
Thuwayba Ahmed - avatar
0
class Test: __egg = 7 t = Test() print(t._Test__egg)
10th May 2023, 8:42 AM
Majid Eslami
Majid Eslami - avatar
- 1
class. class Test: __egg = 7 t = Test() print(t._Test __egg)
5th Jul 2019, 12:44 AM
Abdullahi Hassan
- 1
Guys this is answer class Test: _ _ egg = 7 t = Test() print(t. _ Test _ _ egg)
7th Dec 2020, 6:20 PM
Turikumana Isaie
Turikumana Isaie - avatar
- 2
class Test: __egg = 7 t = Test() print(t._Test__egg)
10th May 2020, 6:33 AM
pirunthavi sivakumar
pirunthavi sivakumar - avatar
- 3
17th Jun 2020, 3:59 AM
Shivank Verma
Shivank Verma - avatar
- 3
https://youtu.be/Tg4Du8eUFw8 full python tutorial link video
8th Jul 2020, 11:24 AM
Kailash Singh
Kailash Singh - avatar
- 3
class. class Test: __egg = 7 t = Test() print(t._Test __egg)
5th Dec 2020, 12:37 PM
Hafiz Ramadhan
Hafiz Ramadhan - avatar
- 4
re sub 0 num
1st Mar 2020, 4:27 AM
VIMALRAJ K
VIMALRAJ K - avatar
- 4
_ _ __egg
24th Mar 2020, 4:41 PM
Aravind Jinde
Aravind Jinde - avatar
- 4
All are kids so they don't give answers.
10th Apr 2020, 12:27 PM
Bibek Subedi
- 4
The answer is class Test: __egg = 7 t = Test() print(t._Test_egg)
26th Apr 2020, 7:06 PM
GermoOKD
GermoOKD - avatar