Data update
This commit is contained in:
parent
4d5544505c
commit
4924dd0264
3073 changed files with 55820 additions and 4408 deletions
|
|
@ -6,14 +6,14 @@
|
|||
import pickle
|
||||
|
||||
class Entity:
|
||||
def __init__(self):
|
||||
self.name = "Entity"
|
||||
def printName(self):
|
||||
print self.name
|
||||
def __init__(self):
|
||||
self.name = "Entity"
|
||||
def printName(self):
|
||||
print self.name
|
||||
|
||||
class Person(Entity): #OldMan inherits from Entity
|
||||
def __init__(self): #override constructor
|
||||
self.name = "Cletus"
|
||||
def __init__(self): #override constructor
|
||||
self.name = "Cletus"
|
||||
|
||||
instance1 = Person()
|
||||
instance1.printName()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue