2 ms·
Let's say you have a type. Let's call it List. When you create a List you want to enable the possibility of setting a Capacity - how large can this List be. A
by danielovichdk 3y ago
Let's say you have a type. Let's call it List.
When you create a List you want to enable the possibility of setting a Capacity - how large can this List be.
And you also want to enable reading how large the List is at a given point.
Pretty valid case for a setter and a getter in my book.