The init() is a special method in classes which is used to declare an initializer for the class. More information can be found here: Initializers
init()