- 3

How would the attribute __a of the class b be accessed from outside the class?

Tell the answer.

14th Jul 2016, 6:34 AM
chaitanya
34 odpowiedzi
+ 17
_b__a
15th Jul 2016, 11:02 AM
Денис Будяк
Денис Будяк - avatar
+ 6
the answer is _b__a
12th Aug 2017, 11:12 AM
Sagar Upadhyay
Sagar Upadhyay - avatar
+ 6
answer: _b__a
18th Aug 2017, 7:06 AM
Rakhmon Matyusupov
Rakhmon Matyusupov - avatar
+ 6
_b__a
17th May 2019, 5:43 PM
Макс
Макс - avatar
+ 5
_b__a
18th Jan 2019, 1:38 PM
Ugwu Nnanna
Ugwu Nnanna - avatar
+ 2
_b__a
1st Nov 2017, 12:49 PM
ADESHINA HAMMED OLNIYI
+ 2
Alternative: b()._b__a
23rd Apr 2019, 7:34 AM
Benyamin Jafari
Benyamin Jafari - avatar
+ 2
_b__a
5th Dec 2020, 12:33 PM
Hafiz Ramadhan
Hafiz Ramadhan - avatar
+ 2
_b__a
22nd Sep 2021, 3:21 PM
Princi Patel
Princi Patel - avatar
+ 1
Example : c =b() #New instant of the class b print(c._b__a) #prints attribute __a of the class b
24th Jul 2016, 7:08 AM
Александр Малин
Александр Малин - avatar
+ 1
_b__a
15th Nov 2016, 6:33 AM
Soumaya Hamzaoui
Soumaya Hamzaoui - avatar
+ 1
Ans: _b__a
19th May 2017, 4:22 PM
Mahnoor Shahzad
Mahnoor Shahzad - avatar
+ 1
_b__a
9th Jun 2020, 4:19 AM
Felix Ochieng
Felix Ochieng - avatar
+ 1
How would the attribute __a of the class b be accessed from outside the class? Answer:- _b__a
27th Jun 2020, 6:24 AM
Gourav Tomar
Gourav Tomar - avatar
0
What is the purpose of prefacing a method name with a single underscore? Answer :- To mark it as private
27th Jun 2020, 6:25 AM
Gourav Tomar
Gourav Tomar - avatar
0
What is a private method in Python? Answer :- A method external code is discouraged from using
27th Jun 2020, 6:26 AM
Gourav Tomar
Gourav Tomar - avatar
0
Which tag contains the visual part of the web page? Answer :- <Body>
27th Jun 2020, 6:33 AM
Gourav Tomar
Gourav Tomar - avatar
0
The ans is _b__a
30th Jun 2020, 7:54 AM
Faith Mundi
Faith Mundi - avatar
0
_b_a
6th Jul 2020, 8:45 AM
Lae
0
https://youtu.be/Tg4Du8eUFw8 full python video tutorial link
8th Jul 2020, 11:22 AM
Kailash Singh
Kailash Singh - avatar