# How to \<constructor\>?

**URL:** <https://forums.unrealengine.com/t/how-to-constructor/1892024>\
**Category:** Programming & Scripting\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [June 6, 2024, 8:18am UTC](https://forums.unrealengine.com/t/how-to-constructor/1892024 "2024-06-06T08:18:24Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![t.tutiya](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/t.tutiya/32/924637_2.png) [@t.tutiya](https://forums.unrealengine.com/u/t.tutiya)\
**Post date:** [June 10, 2024, 5:14am UTC](https://forums.unrealengine.com/t/how-to-constructor/1892024/3 "2024-06-10T05:14:48Z")

</div>

Hi.  
for more information.

> [@Question about constructor function](https://forums.unrealengine.com/t/question-about-constructor-function/1761501):
>
> What is the difference between the following two functions? #cat := class: # Name:string # Sound:string MakeCat1\<constructor\>(name:string, sound:string) := cat: Name := name Sound := sound MakeCat2(name:string, sound:string):cat = cat: Name := name Sound := sound If they are the same, wouldn’t the constructor specifier be meaningless?

And, Nest constructors can be useful when creating persistent data.

> **[Using Persistable Data In Verse | Unreal Editor For Fortnite Documentation |...](https://dev.epicgames.com/documentation/en-us/uefn/using-persistable-data-in-verse#usingconstructorsforpartialupdates)**
>
> Create custom save data that persists across game sessions in Verse.

---

_[View the full topic](https://forums.unrealengine.com/t/how-to-constructor/1892024)._
