Hence, Smalltalk implements all data types as Smalltalk classes and operations on data as methods in these classes. Unlike procedural languages where data types and operations are defined as part of the language syntax, Smalltalk has no awareness of data types or data operations. New data can be created like creating new instance of a class. Operations can be perform on data by sending a message to the object. Y String A string is any sequence of characters enclosed between single quotes.
All symbols are unique.
Array An array is a data structure whose elements can be any valid object. An array literal is an indexed sequence of literals. All variables initially are point to nil . Nil also can be used as the return value in a method to indicate that an operation is not successful. Return nil if aPower is not positive.