0
What is the “purist” or “correct” way to access an object’s properties from within an object method that is not a getter/setter method? I know that from outside of the object you should use a getter/setter, but from within would you just do: Java: [code] String property = this.property; [/code] PHP: [code] $property = $this->property; [/code] or would you do: Java: [code] String property = this.getProperty(); [/code] PHP: [code] $property = $this->getProperty(); [/code] Forgive me if my Java is a little off, it’s been a year since I programmed in Java…