Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
Crypto Zombies Lesson 2, Chapter 5, Inheritance, Solidity Walkthrough
Play lesson

Crypto Zombies Tutorial (Intro to Solidity) - Crypto Zombies Lesson 2, Chapter 5, Inheritance, Solidity Walkthrough

4.0 (3)
22 learners

What you'll learn

This course includes

  • 1.3 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Keywords

Full Transcript

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.

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Courses

FAQs

Course Hive
Download CourseHive
Keep learning anywhere