Objects

In most programming languages you have terms such as array and object.

The main difference is how one addresses an array (as an associative) access method and an object (as a property) method.

How does I express an object or a collection of object, for example if I want to group some elements together like...

Using JavaScript as an example...

 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 would I be able to express data like that which is a collection of objects or could be a collection of objects and arrays?

For that you want struct

Like majenko says, a struct or class can be used to create complex structures.

struct Rect{
  int left, top, right, bottom;
};

struct Foo{
  Rect position;
  char status[ 10 ];
  char style[ 10 ];
};

Foo objects[] = {
  { { 0, 0, 10, 10 }, "status0", "style0" },
  { { 20, 20, 30, 30 }, "status1", "style1" },
};