I usually use a custom getter if its a property of...
# announcements
a
I usually use a custom getter if its a property of the class (e.g. the
size
of a
List
) and methods when something is "computed" (e.g.
pop()
an element off a
Queue
), but there is not much difference performance-wise