This chapter concentrates on how Smalltalk implements data and operations on data. As mentioned before that everything in Smalltalk is an object. 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 .