3 ms·
Yes, 99% they don't do anything, but the 1% of cases in which you want to add something extra, you're glad you're using properties. For example if you want to c
by skocznymroczny 5y ago
Yes, 99% they don't do anything, but the 1% of cases in which you want to add something extra, you're glad you're using properties. For example if you want to convert the data to other format/unit before returning, or to log all usages of a variable.
- speed_spread 5y agoAs long as this is your code, refactoring to introduce getters and setters if ever needed would be a cinch.