0 votes
14 views

What is the difference between underscore and self (i.e self.xx and _xx) ?

in Technology by (189k points)

1 Answer

0 votes
when you are using the self.XX, you access the property via the setter or getter.
when you are using the _XX, you access the property directly skip the setter or getter
by (189k points)

Related questions

0 votes
1 answer 14 views
0 votes
1 answer 24 views
0 votes
1 answer 11 views
11 views asked Nov 10, 2020 in Technology by JackTerrance (189k points)
0 votes
1 answer 24 views
0 votes
1 answer 14 views
0 votes
1 answer 11 views
0 votes
1 answer 8 views
8 views asked 20 hours ago in Technology by JackTerrance (189k points)
0 votes
1 answer 24 views
0 votes
1 answer 38 views
0 votes
1 answer 14 views
...