The term "get" refers to retrieving the value of a variable or an object's property.
Think of getting a book from a library. When you want to read a specific book, you go to the library and retrieve it from the shelf. Similarly, when you "get" a variable, you are accessing its value.
set: This term refers to assigning or changing the value of a variable or an object's property.
return: This term is used when a method gives back or "returns" a value after performing some operations.
access modifier: An access modifier determines the visibility and accessibility of variables, methods, and classes in Java.
Study guides for the entire semester
200k practice questions
Glossary of 50k key terms - memorize important vocab
© 2024 Fiveable Inc. All rights reserved.
AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.