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 Car: | |
def drive(self, destination: str) -> None: | |
pass | |
def start(self) -> bool: | |
pass |
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: |
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 |
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 |