# State

*noun*

say it: **“STAYT”** **/steɪt/**

The values an object holds at a given moment.

## What is **State**?

An object's **state** is the current values of its data. A light switch object might be in the "on" state or the "off" state. Calling methods usually changes the state.

```csharp
var lamp = new Lamp();  // IsOn = false
lamp.TurnOn();          // IsOn = true: the state changed
```

## In a sentence

- “After the touchdown, the scoreboard's **state** was Home 14, Away 7.”

Level: Novice · [More OOP terms at this level](https://www.ask-codey.com/glossary?category=oop&level=1)

Updated: November 9, 2026

Source: https://www.ask-codey.com/glossary/state
