Class definitions using sanctuary keyword in Soul
sanctuary
keyword and provide object-oriented programming capabilities. They encapsulate data and behavior, support inheritance, and can be extended with traits.
sanctuary
keyword:
.new()
method:
__genesis__
method is the constructor and is called when creating new instances:
extends
:
super
keyword calls methods from the parent class:
UserManager
instead of Manager
__genesis__