3: Methods- Communicating with Objects

Java, Java, Java - Object-Oriented Programming · LibreTexts

0%

Contents

    Text

    Size
    100%
    Theme
    Typeface
    Line length
    Spacing

    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 Thu, 16 Apr 2026 21:53:38 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.