VerseIsland
Feed Learn Leaderboard Guides Reference Explore Search Docs Verse Library
Sign in
Feed Learn 📖 Codex Leaderboard Guides Reference Explore Search Docs Verse Library
Fortnite › Player · Up to Fortnite · Player · 4 of 142 in Player
Browse Fortnite

Classes in Verse

In Verse, a class is a template for creating objects with similar behaviors and properties. It is a composite type, which means that it’s bundled data of other types and functions that can operate on that data.

Classes are hierarchical, which means that a class can inherit information from its parent (superclass) and share its information with its children (subclasses). Classes can be a custom type defined by the user. Compare to instance.

For example, let’s say you want to have multiple cats in your game. A cat has a name and an age, and they can meow. Your cat class could look like this:

|  |  |
| --- | --- |
|  | cat := class: |
|  | Name : string |
|  | var Age : int = 0 |
|  | Sound : string |
|  |  |
|  | Meow() : void = DisplayMessage(Sound) |

cat := class: Name : string var Age : int = 0 Sound : string Meow() : void = DisplayMessage(Sound)

Copy full snippet(6 lines long)

Definitions of variables that are nested inside the class define fields of the class. Functions defined inside a class may also be called methods. Fields and methods are referred to as class members. In the above example, Sound is a field, and Meow is a method of cat.

You're reading a preview

The full reference is free for BrainDeadGuild Discord members — sign in to read it all, or open the original at the source.

Sign in with Discord — free for members Read the original at Epic Games

Sign in with your BrainDead.TV / BrainDeadGuild Discord account for full access.

Comments

    Sign in to vote, comment, or suggest an edit. Sign in
    📄
    Source
    Epic Games

    © Epic Games. Official Epic developer documentation, shown here as a reference with a link to the original. All rights remain with Epic Games. Terms ↗

    View original Sources & licensing
    Request removal
    Last updated Mar 8, 2026
    Keep exploring
    More in Player · 4 of 142
    Prev
    class designer
    Next
    class selector
    Browse all files in this folder (A–Z)
    Next up
    • In Verse, a class is a template for creating [objects
    • Specifiers And Attributes In Verse
    • Constants And Variables In Verse
    • For more information, see the [Subclass
    • The following are all the visibility specifiers you can use with classes:
    • You can use [block expressions
    Related topics
    • Fortnite Narrative Experiences In Uefn Tutorials
    • Class In Verse Player
    • Verse Glossary Verse Language
    • Getting Started With Devices In Fortnite Devices
    • Verse Glossary Verse Language

    Related

    Open in graph →

    Linked docs

    • Verse Glossary

    Related topics

    • Fortnite Narrative Experiences In Uefn
    • Class In Verse
    • Subclass In Verse
    • Verse Glossary
    VerseIsland · an archipelago of Verse & UEFN knowledge
    🗺️ Island atlas Learn Guides History About & Press Sources & Licensing Status

    Not affiliated with Epic Games. Fortnite, UEFN, Unreal Engine, and Verse are trademarks of Epic Games, Inc. Content is attributed to its source — see Sources & Licensing.

    🦜

    Scout · your island guide

    The Isle of Verse