Skip to content

Instantly share code, notes, and snippets.

@mcsee
Created November 22, 2020 02:41
Show Gist options
  • Save mcsee/47847ea77875bb6f6e5e1cba2e914b05 to your computer and use it in GitHub Desktop.
Save mcsee/47847ea77875bb6f6e5e1cba2e914b05 to your computer and use it in GitHub Desktop.
class car:
def __init__(self,company,color,engine):
self._company = company
self._color = color
self._engine = engine
def goTo(self, coordinate):
self.move()
def startEngine(self):
## code to start engine
self.engine.start()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment