<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Documentation - composite-types-in-verse</title>
  <style>
    body { 
      font-family: monospace; 
      margin: 0;
      padding: 0;
    }
    pre { 
      background-color: white; 
    }
  </style>
</head>
<body>
  <pre>1.  ![Epic Games](https://edc-cdn.net/assets/images/logo-epic.svg)[Developer](/)
2.  [Documentation](/documentation/ "Documentation")
3.  Fortnite
    *   [Unreal Engine](/documentation/en-us/unreal-engine)
    *   [Fortnite](/documentation/en-us/fortnite)
    *   [MetaHuman](/documentation/en-us/metahuman)
    *   [Twinmotion](/documentation/en-us/twinmotion)
    *   [RealityScan Mobile](/documentation/en-us/realityscan-mobile)
    *   [Fab](/documentation/en-us/fab)
4.  [Fortnite Documentation](/documentation/en-us/fortnite/fortnite-documentation "Fortnite Documentation")
5.  [Verse Language Reference](/documentation/en-us/fortnite/verse-language-reference "Verse Language Reference")
6.  Composite Types

Composite Types
===============

Create your own unique type from a composite type.

![Composite Types](https://dev.epicgames.com/community/api/documentation/image/a41db426-6d6b-412a-aa37-691e29e5e37e?resizing_type=fill&width=1920&height=335)

Create a unique [type](https://dev.epicgames.com/documentation/en-us/fortnite/verse-glossary#type) through the use of [composite types](https://dev.epicgames.com/documentation/en-us/fortnite/verse-glossary#composite-type). Verse offers several ways you can do this.

[

![Class](https://dev.epicgames.com/community/api/documentation/image/cf067e89-f5a7-48ff-8aef-7098a8c7e65f?resizing_type=fit&width=640&height=640)

Class

A class is a template for creating objects with similar behaviors and properties (fields and methods).





](https://dev.epicgames.com/documentation/en-us/fortnite/class-in-verse)[

![Enum](https://dev.epicgames.com/community/api/documentation/image/c7f49235-3519-4b84-8ace-a85a099dbf36?resizing_type=fit&width=640&height=640)

Enum

An enum is a type used to store named sets of things.





](https://dev.epicgames.com/documentation/en-us/fortnite/enum-in-verse)[

![Struct](https://dev.epicgames.com/community/api/documentation/image/ce351b3d-89e9-46e8-ab6b-9e7eeba3f213?resizing_type=fit&width=640&height=640)

Struct

A struct is a way to group several related variables together.





](https://dev.epicgames.com/documentation/en-us/fortnite/struct-in-verse)[

![Subclass](https://dev.epicgames.com/community/api/documentation/image/db9a8a4c-9b68-4892-8253-419192e46e2c?resizing_type=fit&width=640&height=640)

Subclass

A subclass is a class that extends the definition of another class by adding or modifying the fields and methods of the other class.





](https://dev.epicgames.com/documentation/en-us/fortnite/subclass-in-verse)[

![Interface](https://dev.epicgames.com/community/api/documentation/image/d61b38bf-96ee-4231-9e3c-28ac423f8b5d?resizing_type=fit&width=640&height=640)

Interface

An interface provides a contract for how to interact with any class that implements the interface.





](https://dev.epicgames.com/documentation/en-us/fortnite/interface-in-verse)[

![Constructor](https://dev.epicgames.com/community/api/documentation/image/e8d878c5-2feb-42ac-9335-a39fbfa63b43?resizing_type=fit&width=640&height=640)

Constructor

A constructor is a special function that creates an instance of the class that it's associated with.





](https://dev.epicgames.com/documentation/en-us/fortnite/constructor-in-verse)

*   [verse](https://dev.epicgames.com/community/search?query=verse)
*   [language](https://dev.epicgames.com/community/search?query=language)

* * *

Ask questions and help your peers [Developer Forums](https://forums.unrealengine.com/categories?tag=fortnite)

Write your own tutorials or read those from others [Learning Library](https://dev.epicgames.com/community/fortnite/learning)</pre>
</body>
</html>