Created
September 17, 2018 20:50
-
-
Save hillal20/0d9351d09ae0f42b175c3d08a26b47b8 to your computer and use it in GitHub Desktop.
NegligibleNotableProgramminglanguage created by hillal20 - https://repl.it/@hillal20/NegligibleNotableProgramminglanguage
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 Build: | |
def __init__(self, name , age , city): | |
self.name = name | |
self.age = age | |
self.city = city | |
# def __str__(self): | |
# return str({self.name,self.age,self.city}) | |
def __repr__(self): | |
return "<Human: %s, %d>" % (self.name, self.age) | |
class Hill(Build): | |
def __init__(self,name,age,city, team, Class): | |
super().__init__(name,age,city) | |
self.team = team | |
self.Class = Class | |
# def __str__(self): | |
# return str({self.Class,self.team}) | |
# def __repr__(self): | |
# return "<Human: %s, %d>" % (self.name, self.age) | |
a = Build("hillal", 33,'nyc') | |
print(a) | |
b = Hill("fill", 35,'nj', 'barca', 'cs9') | |
print(b) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment