3: Methods- Communicating with Objects

CS 113 Programming in Java · LibreTexts

0%

Contents

    Text

    Size
    100%
    Theme
    Typeface
    Line length
    Spacing

    Read aloud

    How

    Speed: 1×
    Light up
    Highlight

    Symbols: Mulberry Symbols, © 2018–2026 Steve Lee, CC BY-SA 4.0 (licence, the set), the site's own copies.

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

    3: Methods- Communicating with Objects
    Learning Objectives

    After studying this chapter, you will

    • Understand the role that methods play in an object-oriented program.
    • Know how to use parameters and arguments to pass data to an object.
    • Understand how constructor methods are used to instantiate objects.
    • Know the difference between passing a value and passing a reference to an object.
    • Be able to design your own methods.
    • Know how to use the if-else and while control structures.


    This page titled 3: Methods- Communicating with Objects was last modified on Fri, 05 Jun 2026 19:08:44 GMT and is shared under a CC BY 4.0 license and was authored, remixed, and/or curated by Ralph Morelli and Ralph Wade via source content that was edited to the style and standards of the LibreTexts platform.