Skip to content

Solidity Inheritance, Modifiers and Importing of Files

In this Lab you will learn how Solidity Inheritance works, what's it for and how to use Modifiers.

We will create a long and spaghetti-like Smart Contract. Then we improve it step-by-step by using first a modifier, then separate logic into an external Smart Contract and then finally into an external File.

What You Know At The End Of The Lab

🎭 Modifiers

🧱 Inheritance

πŸ—ƒ Importing of external Files

Prerequisites - You need:

  1. Chrome or Firefox browser.

  2. An Internet connection

  3. About 60 Minutes of your precious time βŒ›

Get Started

πŸ’ͺ πŸ’ͺ πŸ’ͺ Let's get started!

Using Solidity 0.8

These labs were updated to Solidity 0.8 and can differ from the videos slightly. Please pay attention to the callouts where appropriate.

Last update: April 29, 2022