Smalltalk - Classes

Classes

This is a stock class definition:

Object subclass: #MessagePublisher instanceVariableNames: '' classVariableNames: '' poolDictionaries: '' category: 'Smalltalk Examples'

Often, most of this definition will be filled in by the environment. Notice that this is actually a message to the "Object"-class to create a subclass called "MessagePublisher". In other words: classes are first-class objects in Smalltalk which can receive messages just like any other object and can be created dynamically at execution time.

Read more about this topic:  Smalltalk

Famous quotes containing the word classes:

    The want of education and moral training is the only real barrier that exists between the different classes of men. Nature, reason, and Christianity recognize no other. Pride may say Nay; but Pride was always a liar, and a great hater of the truth.
    Susanna Moodie (1803–1885)

    There are two classes of men called poets. The one cultivates life, the other art,... one satisfies hunger, the other gratifies the palate.
    Henry David Thoreau (1817–1862)

    The most powerful lessons about ethics and morality do not come from school discussions or classes in character building. They come from family life where people treat one another with respect, consideration, and love.
    Neil Kurshan (20th century)