# Access qualifiers

In Snowball, access qualifiers determine the visibility and accessibility of class members (variables and methods) from outside the class. Snowball provides 2 access qualifiers: `public` and `private`.&#x20;

These qualifiers allow you to control the level of encapsulation and restrict or expose class members as needed. Here's an explanation of each access qualifier:

```swift
class Foo {
    let a: String = "hello"; // private scope
  public:
    let b: i32 = 0; // public scope
  private:
    let c: f32 = 1.2; // private scope, again
}
```

{% content-ref url="/pages/GwYLYrcIood97p5IZAqo" %}
[Access qualifiers](/docs/language-reference/access-qualifiers.md)
{% endcontent-ref %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://snowball-lang.gitbook.io/docs/language-reference/classes/access-qualifiers.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
