Last active
October 8, 2021 11:28
-
-
Save sepisoltani/32a4a89ac2893c2f53c63f8ceeb26b65 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 Animal { | |
function walk() public returns (string memory) { | |
return "walking"; | |
} | |
} | |
contract Cat is Animal { | |
function run() public returns (string memory) { | |
return "running"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment