Skip to content

Instantly share code, notes, and snippets.

@theoctober19th
Created December 8, 2019 05:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theoctober19th/ab08e127fe4c625b9f47123063e0f51a to your computer and use it in GitHub Desktop.
Save theoctober19th/ab08e127fe4c625b9f47123063e0f51a to your computer and use it in GitHub Desktop.
First day of Bootcamp
class Car():
def __init__(self, name):
self.name = name
def display(self):
print(self.name)
class Tata(Car):
def __init__(self, name):
self.name = name
def display(self):
print('i am overridden')
c = Tata('Swift')
c.display()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment