Created
July 2, 2020 11:23
-
-
Save shivanchalaeologic/9881d1e8792f193cb1d6df634e21d990 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
class Alligator { | |
void bite() => print('Chomp'); | |
void crawl() => print('Crawling'); | |
void swim() => print('Swimming'); | |
void hunt() { | |
print('Alligator'); | |
crawl(); | |
bite(); | |
swim(); | |
print('Eat Fish'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment