in Technology by (1.8m points)

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

1 Answer

0 votes
by (1.8m points)
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

Related questions

0 votes
asked Nov 11, 2021 in Education by JackTerrance (1.8m points)