Clarity theorytheory 0/50 · 0%
Traits · medium

27. Implementing Traits

Conforming to a defined interface.

A contract implements a trait by defining all the functions specified in the trait definition. The `impl-trait` keyword can be used to explicitly declare this intent, which helps tools verify the contract.

Check your understanding

  1. 1. Which keyword declares a contract implements a trait?