Skip to content

Instantly share code, notes, and snippets.

@theoctober19th
Created December 8, 2019 11:34
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/09c46a850bc766ee205991cf1adc1db6 to your computer and use it in GitHub Desktop.
Save theoctober19th/09c46a850bc766ee205991cf1adc1db6 to your computer and use it in GitHub Desktop.
day shift ko gist
class Car():
def __init__(self, year):
self.year = year
def display(self):
print('i am inside parent')
class Tata(Car):
def __init__(self, year):
self.year = year
def display(self):
print('i am child now')
t = Tata(2019)
t.display()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment