Skip to content

Instantly share code, notes, and snippets.

@ebwood
Created September 18, 2021 03:29
Show Gist options
  • Save ebwood/d68e1c6c8f83c6d69775bd2122fbe422 to your computer and use it in GitHub Desktop.
Save ebwood/d68e1c6c8f83c6d69775bd2122fbe422 to your computer and use it in GitHub Desktop.
mixin Dog {
void run() {
print('Dog run');
}
void walk() {
print('Dog walk');
}
}
mixin Cat {
void run() {
print('Cat run');
}
void catWalk() {
print('Cat catWalk');
}
}
class Human with Dog, Cat {}
void main(List<String> arguments) {
Human human = Human();
human.walk();
human.run();
human.catWalk();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment