get/set/pro
Posted: Thu Nov 06, 2008 10:22 am
another of my doubts....
this code, using get
and this, using pro
are absolutely equivalent or is there some deep difference?
this code, using get
- Code: Select all
class Punto
var _xcoor as int
var _ycoor as int
var _zcoor as int
def init(x as int, y as int, z as int)
_xcoor = x
_ycoor = y
_zcoor = z
get xcoor from var
and this, using pro
- Code: Select all
class Punto
var _xcoor as int
var _ycoor as int
var _zcoor as int
def init(x as int, y as int, z as int)
_xcoor = x
_ycoor = y
_zcoor = z
pro xcoor from var
are absolutely equivalent or is there some deep difference?