Created
March 10, 2024 07:13
-
-
Save vorant94/50b6dd14b93938b3cc6d070abb9a472d 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
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