All Subjects
Light
AP Computer Science A
The term "get" refers to retrieving the value of a variable or an object's property.
congrats on reading the definition of get. now let's actually learn it.
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.