#!/usr/bin/python
## @package PySync
class pere_list:
list = []
def __init__(self):
return
def add(self, element):
self.list.append(element)
return
def display(self):
for element in self.list:
print element
class enfant_list(pere_list):
def __init__(self):
pere_list.__init__(self)
return
def add(self, index):
pere_list.add(self, index)
class enfant2_list(pere_list):
def __init__(self):
pere_list.__init__(self)
return
def add(self, index):
pere_list.add(self, index)
list = enfant_list()
list2 = enfant2_list()
list.add(1)
list.add(2)
list2.add(4)
list2.add(5)
print "Contenu de la liste"
list.display()
print "Contenu de la liste 2"
list2.display()