# Class

The template that describes what data and actions its objects 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!");
}
```

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

Updated: September 27, 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)

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