3 ms·
> Properties help avoid this anti-pattern by making it possible to transparently swap in a computed property for what used to be a plain field. Java's getters
by hota_mazi 4y ago
> Properties help avoid this anti-pattern by making it possible to transparently swap in a computed property for what used to be a plain field.
Java's getters and setters *are* properties. Just with more syntactic sugar than languages that natively support properties, but the semantic is exactly the same.