Skip to content

Instantly share code, notes, and snippets.

@vorant94
Created March 10, 2024 07:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vorant94/50b6dd14b93938b3cc6d070abb9a472d to your computer and use it in GitHub Desktop.
Save vorant94/50b6dd14b93938b3cc6d070abb9a472d to your computer and use it in GitHub Desktop.
interface Walkable {
walk(): void;
}
interface Flyable {
fly(): void;
}
class Dog implements Walkable {
walk() {
// Move in 2d space
}
}
class Crow implements Flyable {
fly() {
// Move in 3d space
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment