# Making classes private

**URL:** <https://forums.unrealengine.com/t/making-classes-private/795855>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite\
**Created:** [March 21, 2023, 5:41pm UTC](https://forums.unrealengine.com/t/making-classes-private/795855 "2023-03-21T17:41:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![FinestCreative](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/finestcreative/32/1034971_2.png) [@FinestCreative](https://forums.unrealengine.com/u/FinestCreative)\
**Post date:** [March 21, 2023, 5:41pm UTC](https://forums.unrealengine.com/t/making-classes-private/795855/1 "2023-03-21T17:41:46Z")

</div>

I saw you can use the specifier in classes. But wherever I put them it gives an error. Am I doing something wrong?

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/9/d/59d62c8216e01b690464e2789b3498936375aa9a.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/b/d/cbd5144c735b700ecb48c770c632de18dc76849c.png)

---

<div class="post-metadata">

**Author:** ![Tom.Noonan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tom.Noonan](https://forums.unrealengine.com/u/Tom.Noonan)\
**Post date:** [March 22, 2023, 7:08pm UTC](https://forums.unrealengine.com/t/making-classes-private/795855/2 "2023-03-22T19:08:50Z")

</div>

You should be allowed to use the specifier in a class like you say. If you provide your full script we can check it out

edit: Saam has the answer below, I was only paying attention to the `VoteDevice<private>`

---

<div class="post-metadata">

**Author:** ![saamyjoon](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/saamyjoon/32/924320_2.png) [@saamyjoon](https://forums.unrealengine.com/u/saamyjoon)\
**Post date:** [March 22, 2023, 7:23pm UTC](https://forums.unrealengine.com/t/making-classes-private/795855/3 "2023-03-22T19:23:50Z")

</div>

I believe the compiler is erroring because you are using `private` on the identifier main. If you want that to be local to your module, you should use `<internal>` instead of `<private>`. The other uses of `private` in your class `main` look correct to me.

edit: You can read more about access specifiers here:

> **[Specifiers and Attributes](https://dev.epicgames.com/documentation/en-us/uefn/specifiers-and-attributes-in-verse)**
>
> Learn about specifiers and attributes, and how to apply additional semantics and behavior to your Verse code.
