Multiple Inheritances | Solidity 0.8
HTML-код
- Опубликовано: 4 фев 2025
- How do you declare a contract that inherits from many parent contracts in Solidity?
#Solidity #SmartContract #Ethereum #スマートコントラクト
Remix
remix.ethereum...
Code
solidity-by-ex...
Take a course
www.smartcontr...
Follow
/ programmersmart
/ discord
t.me/smartcont...
smartcontractp...
Dislike this comment to dislike the video
Lol
RUclips removed dislike counter, maybe this will help
@@smartcontractprogrammer 😂😂😂
You mean "like" this content? Dislikes are also invisible for comments.
@@smartcontractprogrammer how to creat malware in smart contract collect info password ect . also how I can contact u
Thank you, again. I’ve been learning the fundamentals from all over the place, and thus far your video’s seem to be the simplest breakdown. Looking forward to delving into more of your content.
Bro you're a f*cking legend 🔥🔥
thanks, very nice video👍
Very clear thanks
If Y inherits from X and Z inherits from Y, then arent all functions of X already available in Z? Why does Z need to inherit X separately?
It was used to simplify the code example. I didn't want to fill the screen with Contract X, Y, Z, A, B, C... Z is Y, B, C
That is multi level inheritence. There is stark difference between multi level and multiple inheritance as you inherit every single contract in the base-order in multiple inheritence. In multiple inheritences, you need to override every virtual function while in the multi-level inheritance, overiding the base contract's virtual functions will be enough.
Got it! But why did you go from using external to using public? I completely overlooked it in the last inheritance video.
public can be called from inside the contract (including child contracts)
thanks so much
Solid explanation, I was struggling with this concept and also can you please make a course of web3, truffle and later make a complete app tutorial
hi, how many lessones will u do ?
www.smartcontract.engineer/challenges
up to multi-sig, maybe skip a few challenges
❤️
Definitely log time will catch up with you on discord