Delphi Classes: Property vs Get/Set methods
12:43 05 Mar 2015

So I'm kinda new to OO programming. Delphi has properties which are intended to be a "more elegant" way to acess class data than getters/setters (read it here usage of property vs getters/setters in business classes).

When should I use the fields directly and when should I use getters/setters inside the property? I'm gessing only when the data needs to be manipulated, but I'm not sure.

Edit:

Is it wrong to omit a setter that does nothing but return the value of the field itself?

  property Field :integer read FField write FField;
class delphi properties setter getter