+ 4
Why is .getter needed if @property already defines a "getter" method?
Any example where @property and .getter are needed?
1 Antwort
0
for not giving direct access to the object data, known as data encapsulation.
Any example where @property and .getter are needed?