Question · Blockchain and Web3 course · Module 6: Solidity Basics

Contract Inheritance

How do you denote contract inheritance in Solidity?

Answer options

  • contract Child extends Parent
  • contract Child is Parent
  • contract Child : Parent
  • contract Child inherits Parent

You can check the correct answer by solving this task in the CodeWorlds game.