Naming conventions for complex getters in Java
        Posted  
        
            by Simon
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Simon
        
        
        
        Published on 2010-06-03T08:59:47Z
        Indexed on 
            2010/06/03
            9:04 UTC
        
        
        Read the original article
        Hit count: 297
        
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?
© Stack Overflow or respective owner