Created
March 10, 2024 07:09
-
-
Save vorant94/7072cb444aa9d56ae1217151d598cdde 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
abstract class Animal { | |
abstract move(): void; | |
} | |
class Mammal extends Animal { | |
move() { | |
// Move in 2d space | |
} | |
} | |
class Ave extends Animal { | |
move() { | |
// Move in 3d space | |
} | |
} | |
class Dog extends Mammal {} | |
class Crow extends Ave {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment