Back to Browse

Contract Inheritance In Solidity | Ep6

4.1K views
Dec 24, 2017
12:01

In a lot of programming languages, we have classes. In Solidity, we have contracts. Like classes, they can inherit from each other. Let's have a look at how it works. Like this channel? Subscribe here: https://www.youtube.com/channel/UCZM8XQjNOyG2ElPpEUtNasA In this video tutorial we are going to: - Write 2 contracts: a derived contract, and a base contract - Make the derived contract inherit from the base contract - Use the "is" keyword for contract inheritance - Call a function of an inherited contract - Access a variable of an inherited contract - Use the Truffle framework We will demonstrate that our contract work by using the Truffle console, deploying our contract to a local testnet and calling the functions of our smart contract. Links: - Source Code: https://github.com/jklepatch/eattheblocks/tree/master/episode6 - Official Website https://eattheblocks.com - Author Website: https://www.julienklepatch.com - Truffle: http://truffleframework.com

Download

0 formats

No download links available.

Contract Inheritance In Solidity | Ep6 | NatokHD