[Gambas-user] MyObject.Property vs MyObject.Variable

Demosthenes Koptsis demosthenesk at ...626...
Mon Jun 20 07:50:10 CEST 2011


Hi list,

i study the objects these days and i saw that we can declare PUBLIC VARS
in a class and also PROPERTIES.

So we can have code like

PUBLIC X AS Integer
cThing.X 

or

PROPERTY X AS Integer
cThing.X

- I understand that a property is shown at Properties List in IDE and a
Vars not.
- Properties need READ/WRITE functions, Vars not.

Are any other differences about them in programming?


-- 
Regards,
Demosthenes Koptsis.





More information about the User mailing list