# Property

A piece of data that an object holds, such as a name or a price.

## What is **Property**?

A **property** (also called a field or attribute) is a piece of data an object holds, like a person's `Name` or a product's `Price`.

```csharp
public class Product
{
    public string Name { get; set; }
    public decimal Price { get; set; }
}
```

Level: Novice · [More OOP terms at this level](https://www.ask-codey.com/glossary/subjects/oop/novice)

Updated: September 27, 2026

## In other subjects

- [Property in C#](https://www.ask-codey.com/glossary/property)
- [Property in CSS](https://www.ask-codey.com/glossary/property-css-2)
- [Property in JavaScript](https://www.ask-codey.com/glossary/property-javascript)

Source: https://www.ask-codey.com/glossary/property-oop
