Objects
in programming languages have terms such array , object.
the main difference how 1 addresses array (as associative) access method , object (as property) method.
how express object or collection of object, example if want group elements like...
using javascript example...
how able express data collection of objects or collection of objects , arrays?
the main difference how 1 addresses array (as associative) access method , object (as property) method.
how express object or collection of object, example if want group elements like...
using javascript example...
code: [select]
obj = new object();
obj.collection = new array();
obj.collection[0] = new object();
obj.collection[0].position = new object();
obj.collection[0].position.left = 100;
obj.collection[0].position.right = 1000;
obj.collection[0].position.bottom = 1000;
obj.collection[0].position.top = 100;
obj.collection[0].position.status = ""; // empty string
obj.collection[0].display.style = "hand";
obj.collection[1] = new object();
obj.collection[1].position = new object();
obj.collection[1].position.left = 45;
...
how able express data collection of objects or collection of objects , arrays?
for want struct
Arduino Forum > Using Arduino > Programming Questions > Objects
arduino
Comments
Post a Comment