Skip to content

Instantly share code, notes, and snippets.

@mikaeilorfanian
Created May 28, 2018 22:05
Show Gist options
  • Save mikaeilorfanian/f3a6318556ac218dd73badab30bd1dd5 to your computer and use it in GitHub Desktop.
Save mikaeilorfanian/f3a6318556ac218dd73badab30bd1dd5 to your computer and use it in GitHub Desktop.
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