var testing : Test = new Test();
This goes into memory handling in code -- There are two types of variables, basic variables, and objects.
Basic variables are ALL either a number type (float, integer, double, long, short, word, long long, etc) or a boolean value. They are stored in a special part of memory.
Then, you have objects. All object variables are actually (internally) numbers referring to a point in memory that contains the actual object. The quirk of this is that objects must be created with "new Type()", allocating a spot in memory, and telling the variable where to point to. Because basic values are smaller, and less dynamic than objects, they don't need a reference to their location. Instead of a reference, they just have the value they store, so, they get defined automatically.
In short, any custom class must be created with new ClassName()
↧