3.11: Chapter Summary

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.

    3.11: Chapter Summary

    In this chapter you have seen how to create packages, classes and methods. In addition, you have learned how to use the System browser, the inspector, the debugger and the Monticello browser.

    • Packages are groups of related classes.
    • A new class is created by sending a message to its superclass.
    • Protocols are groups of related methods inside a class.
    • A new method is created or modified by editing its definition in the browser and then accepting the changes.
    • The inspector offers a simple, general-purpose GUI for inspecting and interacting with arbitrary objects.
    • The browser detects usage of undeclared variables, and offers possible corrections.
    • The initialize method is automatically executed after an object is created in Pharo. You can put any initialization code there.
    • The debugger provides a high-level GUI to inspect and modify the state of a running program.
    • You can share source code by filing out a package, class or method.
    • A better way to share code is to use Monticello to manage an external repository, for example defined as a SmalltalkHub project.

    This page titled 3.11: Chapter Summary was last modified on Sat, 19 Dec 2020 08:13:34 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.