Crypto Zombies Lesson 2, Chapter 5, Inheritance, Solidity Walkthrough

Channel:
Subscribers:
8,020
Published on ● Video Link: https://www.youtube.com/watch?v=jiXUMM5tS_w



Duration: 2:50
231 views
4


In this Chapter of Crypto Zombies we look at inheritance in Solidity. Solidity allows us to inherit from other contracts. Why would this be helpful you ask? Well, sometimes it is better to split our code logic into more organizable chuncks. Solidity inheritance makes this possible. You can think about this like an animal contract and a dog contract. We can make a contract for animals that has basic stuff like an animal can have 4 legs and 2 eyes. We can then create a dog contract which inherits from animal and will have 4 legs and 2 eyes but can also have its own dog like stuff within the dog contract while having access to the animal contract at the same time. In this specific challenge we are asked to create a ZombieFeeding contract which inherits from the ZombieFactory contract.




Other Videos By We Will Code


2018-06-19Codecademy's Learn Express, Getting a Single Expression
2018-06-18Codecademy's Learn Express, Matching Route Paths, Understanding Express JS
2018-06-15Codecademy's Learn Express, Sending a Response, Nodejs Backend
2018-06-14Codecademy's Learn Express, Writing Your First Route
2018-06-13Codecademy's Learn Express, Starting a Server, Back-End Apps
2018-06-13Learn Express JS, Back-End Programming Tutorial, Codecademy
2018-06-09Crypto Zombies Lesson 2, Chapter 8, Zombie DNA, Solidity DApp
2018-06-03Crypto Zombies Lesson 2, Chapter 7, Storage vs Memory
2018-06-01Crypto Zombies Lesson 2, Chapter 6, Import, Imports in Solidity
2018-05-27An Intro to Coding, Codecademy's Welcome To Codecademy Tutorial, Codecademy Starter Kit
2018-05-13Crypto Zombies Lesson 2, Chapter 5, Inheritance, Solidity Walkthrough
2018-05-11Crypto Zombies Lesson 2, Chapter 4, Require, Solidity Require Statements
2018-05-10Crypto Zombies Lesson 2, Chapter 3 Msg.sender, Solidity Language
2018-05-06Crypto Zombies Lesson 2, Chapter 2 Mappings and Addresses
2018-05-06Codecademy Learn Java, Data Structures Generalizations
2018-05-02Crypto Zombies, Chapter 2 Overview,Solidity Programming
2018-05-02Codecademy Learn Java, HashMap Access, Accessing a HashMap
2018-04-28Crypto Zombies Lesson 1 ,Ch14 Web3.js, Solidity Events
2018-04-28Codecademy Learn Java, HashMap, 2018 Programming
2018-04-28Crypto Zombies Lesson 1, Ch13 Events, Solidity Events
2018-04-27Codecademy Learn Java, For Each Loop, Programming in 2018



Tags:
solidity programming
crypto zombies tutorial
mappings and addresses
solidity contract
inheritance