description |
---|
Dealing with primitives |
The example below creates a Boolean instance with the value of true.
myBoolean = true;
The example below creates a Character instance with the value of 'a'.
myCharacter = 'a';
The example below creates an Integer instance with the value of 1234.
myInteger = 1234;
The example below creates a Nil instance.
myObject = nil;
The example below creates a String instance with the value of "1234".
myString = "1234";
The example below creates an Float instance with the value of 1.234.
myFloat = 1.234;