Word
getter
Phoneticsget·ter, stress on the first syllable
US/ˈɡɛtɝ/
UK/ɡˈɛtɐ/
Definition
n. A special tool in computer coding that lets you safely look at a piece of hidden information inside an object without changing it.
n. In object-oriented programming, a public method used to retrieve the value of a private member variable. It provides a controlled interface for accessing data while maintaining encapsulation, often paired with a 'setter' for data modification. In everyday English, it can also mean someone who obtains something.
Examples
“I need to write a getter to see the user's age.”
“The programmer used a getter method to access the private price variable from the product class.”
“By using a getter instead of making the variable public, you can control exactly how the data is presented to other parts of the program.”
Examples
simple
“I need to write a getter to see the user's age.”
contextual
“The programmer used a getter method to access the private price variable from the product class.”
complex
“By using a getter instead of making the variable public, you can control exactly how the data is presented to other parts of the program.”
Usage
Most commonly encountered in the compound 'go-getter' rather than as a standalone noun.
Domains
- Exam level
- CambridgeCambridgeCambridge English QualificationsThe exam suite from Cambridge University Press & Assessment, from A1 Movers up to C2 Proficiency. The benchmark names double as CEFR labels.B2 FirstIELTSIELTSInternational English Language Testing SystemThe 0–9 band test co-owned by the British Council, IDP, and Cambridge. Used for university entry, work, and migration.5.5–6.5TOEFL iBTTOEFL iBTTest of English as a Foreign Language, Internet-Based TestETS's academic English test, the standard route for US university admissions. Scored 0–120, with a 1–6 scale since 2026.1–6 scale: 4.0–4.572–94TOEICTOEICTest of English for International CommunicationETS's workplace English test, big in Japan and Korea. Listening & Reading scores 10–990 and tops out at C1.785–944EikenEikenTest in Practical English ProficiencyThe English proficiency test from the Eiken Foundation of Japan, widely taken by Japanese students. Grades run from 5 to 1, with Pre-1 and Pre-2 between them.Pre-1
- Frequency
- Occasional
- Level
- B2 · Upper Intermediate
- Updated
- アルファベット
- 読み方の一覧 →
QR code
englishreference.com/q/getter