Created
December 8, 2019 11:34
-
-
Save theoctober19th/09c46a850bc766ee205991cf1adc1db6 to your computer and use it in GitHub Desktop.
day shift ko gist
This file contains hidden or 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 __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