6.1: The Rules of the Model

Pharo by Example 5.0 · LibreTexts

0%

Contents

    Text

    Size
    100%
    Theme
    Typeface
    Line length
    Spacing

    From LibreTexts, under CC BY-SA 3.0, as the source states it; its equations are written in TeX, which the PDF shows typeset. This page at LibreTexts.

    6.1: The Rules of the Model

    The object model is based on a set of simple rules that are applied uniformly.

    The rules are as follows:

    Rule 1. Everything is an object.

    Rule 2. Every object is an instance of a class.

    Rule 3. Every class has a superclass.

    Rule 4. Everything happens by sending messages.

    Rule 5. Method lookup dynamically follows the inheritance chain.

    Let us look at each of these rules in some detail.


    This page titled 6.1: The Rules of the Model was last modified on Sat, 19 Dec 2020 08:13:43 GMT and is shared under a CC BY-SA 3.0 license and was authored, remixed, and/or curated by via source content that was edited to the style and standards of the LibreTexts platform.