Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class BaseClass(object):
- def commonFunction(self):
- print "tjenis"
- class A_1(BaseObject):
- def __init__(self):
- self.name = "class A 1"
- class B_1(BaseObject):
- def __init__(self):
- self.name = "class B 1"
- myClassName = "B_1"
- myObject = myClassName()
- print myObject.name
- myObject.commonFunction()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement