Solidity Tutorial: all about Contracts

Jean Cvllr
10 min readMay 17, 2020

Table of Contents

How are smart contracts created?

The “this” keyword

Abstract contracts

Contracts inheritance

The “super” keyword

Function overriding

Deactivate and selfdestruct

How are smart contracts created ?

The EVM in Ethereum know that a smart contract is created when an Externally Owned Account (EOA):

  • sends a transaction
  • specifies a zero-address (0x0000000000000000000000000000000000000000 ) as a recipient.

The data field of the transaction contain the compiled bytecode of the smart contract written in Solidity.

Do you want to see what does this data field / bytecode looks like?

Let’s first install the solc compiler.

brew update
brew upgrade
brew tap ethereum/ethereum
brew install solidity

To check that solc was installed successfully, run the following command:

solc --version

--

--