+ 4

Why is .getter needed if @property already defines a "getter" method?

Any example where @property and .getter are needed?

23rd Oct 2016, 9:09 AM
Jose Luis de la Rosa
Jose Luis de la Rosa - avatar
1 Answer
0
for not giving direct access to the object data, known as data encapsulation.
7th Nov 2016, 1:19 PM
Amit