Creating Module Behaviors

Learn how to build behaviors in Elixir.

Introduction to module behaviors

A contract sets the rules in an agreement between parties and indicates how the parties will benefit. For example, think of a job contract. It has rules for the employee and the employer, and by following those rules, both parties will reap specific benefits. If the rules are broken, though, those benefits aren’t guaranteed.

Get hands-on with 1200+ tech skills courses.