Created
May 14, 2021 04:20
-
-
Save Hurly77/f8886dd07f0c7265a87c56f6ba9d7170 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 Bird { | |
fly(){ | |
//.. | |
} | |
} | |
class Eagle extends Bird { | |
dive(){ | |
//.. | |
} | |
} | |
const eagle = new Eagle(); | |
eagle.fly(); | |
eagle.dive(); | |
class Penguin extends Bird(){ | |
//Problem: Can't fly! | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment