Created
May 28, 2018 22:05
-
-
Save mikaeilorfanian/f3a6318556ac218dd73badab30bd1dd5 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 Vehicle: | |
def drive(self, destination: str) -> None: | |
pass | |
def start(self) -> bool: | |
pass | |
class Car: # Car is of type Vehicle because it has the same methods and signatures that Vehicle has | |
def drive(self, destination: str) -> None: | |
pass | |
def start(self) -> bool: | |
pass |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment