# Class

*noun*

say it: **“KLAS”** **/klæs/**

A template that describes what data and actions every object of one kind will have.

## What is **Class**?

A **class** is the template for creating objects. It lists the data each object will hold and the methods it will have. One `Dog` class can create any number of dog objects.

```csharp
public class Dog
{
    public string Name { get; set; }

    public void Bark() => Console.WriteLine($"{Name} says woof!");
}
```

## In a sentence

- “The Book **class** says every book has a title and a page count.”

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

Updated: November 9, 2026

## In other subjects

- [Class in C#](https://www.ask-codey.com/glossary/class-c-sharp)
- [Class in Java](https://www.ask-codey.com/glossary/class-java)
- [Class in JavaScript](https://www.ask-codey.com/glossary/class-javascript)
- [Class in Python](https://www.ask-codey.com/glossary/class)

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