Esempio n. 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")

Esempio n. 2
0
    def __init__(self, name, position):
        SuperClass.__init__(self, name)

        self.position = position