Created
August 9, 2022 21:08
-
-
Save AyDeveloper/0676aaeda94809096a77dbcb41222601 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
contract A {} | |
contract B {} | |
contract C is A, B {} | |
// Setting Constructor in base contract | |
contract A { | |
uint a; | |
constructor(uint _a) { a = _a; } | |
} | |
contract B is A { | |
constructor(uint _b) A(_b) { | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment