Skip to content

Exercise 068: Understanding Behaviours #48

@zoedsoupe

Description

@zoedsoupe

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions