-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Exercise 068: Understanding Behaviours
Topic: Behaviours
Level: 16
Difficulty: 2
Prerequisites
- Exercise 016: Functions
- Understanding of contracts/interfaces
Learning Objectives
Students will learn to:
- Understand what behaviours are
- See @callback definitions
- Know how behaviours ensure contracts
Key Concepts
- Behaviours as contracts
- @callback attribute
- Compile-time checking
Exercise Structure
- Explain behaviours as module contracts
- Show example behaviour with @callback
- Task: Define simple behaviour
- Expected output: Behaviour defined with callbacks
Hints
Behaviours define which functions a module must implement
References
- Elixir docs: https://hexdocs.pm/elixir/typespecs.html#behaviours
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels