Exemple #1
0
#! /usr/bin/python
# -*- coding: utf-8 -*0

from super import SuperClass
from sub import SubClass

if __name__ == "__main__":

    nancy = SuperClass("Nancy")
    nancy.work("a restaurant")

    mike = SubClass("Mike", "a manager")
    mike.work("a book store")

Exemple #2
0
 def run(self):
     from sub import SubClass
     sc = SubClass(self._data)
     sc.show()
     self.show()