Created
December 8, 2019 05:22
-
-
Save theoctober19th/ab08e127fe4c625b9f47123063e0f51a to your computer and use it in GitHub Desktop.
First day of Bootcamp
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, 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