Skip to content

Instantly share code, notes, and snippets.

@hillal20
Created September 17, 2018 20:50
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 hillal20/0d9351d09ae0f42b175c3d08a26b47b8 to your computer and use it in GitHub Desktop.
Save hillal20/0d9351d09ae0f42b175c3d08a26b47b8 to your computer and use it in GitHub Desktop.
NegligibleNotableProgramminglanguage created by hillal20 - https://repl.it/@hillal20/NegligibleNotableProgramminglanguage
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