# public

An access modifier that makes a type or member broadly accessible.

## What is **public** in C#?

**public** — An access modifier that makes a type or member broadly accessible.

```csharp
class Account
{
    private int balance = 20;

    public int Balance()
    {
        return balance;
    }
}
```

Level: Journeyman · [More C# terms at this level](https://www.ask-codey.com/glossary/subjects/c-sharp/journeyman)

Updated: September 27, 2026

## In other subjects

- [public in Java](https://www.ask-codey.com/glossary/public)
- [Public in OOP](https://www.ask-codey.com/glossary/public-oop)

Source: https://www.ask-codey.com/glossary/public-c-sharp
