Skip to content

Glossary: Java Basics

Getter

Also written: getters

A method that returns a private field, named `get` plus the field name, such as `getStock()`.

Where the book teaches it

Related terms

EncapsulationAccessorprivate