# Class Attribute

say it: **“klas AT-ruh-byoot”** **/klæs ˈætrəˌbjut/**

Data shared by every object made from a class.

## What is a **class attribute**?

A **class attribute** is shared by every object made from the class, instead of each object having its own.

```python
class Employee:
    company = "Acme Co"          # shared by everyone

    def __init__(self, name):
        self.name = name         # each person's own

print(Employee("Ana").company)  # Acme Co
```

Level: Journeyman · [More Python terms at this level](https://www.ask-codey.com/glossary?category=python&level=3)

Updated: November 17, 2026

## In other subjects

- [class attribute in CSS](https://www.ask-codey.com/glossary/class-attribute-html)

Source: https://www.ask-codey.com/glossary/class-attribute
