Not 100% sure about this one and sorry for bringing this issue back. But the last days I thought it would be better to remove the public instance variables and make them private or protected and provide standard getter and setter methods.
Though I do see the advantage of simply saying "myEntity.x = 50;" it is still bad coding style.
What is your opinion here?
Not 100% sure about this one and sorry for bringing this issue back. But the last days I thought it would be better to remove the public instance variables and make them private or protected and provide standard getter and setter methods.
Though I do see the advantage of simply saying "myEntity.x = 50;" it is still bad coding style.
What is your opinion here?