Can a class have a constructor?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By patatra

Hye everyone,
Can a class created in a class_name have a constructor?

Good Day,

:bust_in_silhouette: Reply From: cm

Yes, you can override _init.

See Class constructor in the docs

It’s work, thank you

Good Day,

patatra | 2022-05-14 08:36