Naming conventions for complex getters in Java
- by Simon
Hi there!
I was reading this C# article about the usage of properties and methods. It points out why and when to use properties or methods.
Properties are meant to be used like
fields, meaning that properties should
not be computationally complex or
produce side effects
I was asking myself how you could express this difference in Java, where you only use getters for the retrieval of data.
What is your opinion?