summaryrefslogtreecommitdiff
path: root/pypers/marelli/modulo5/protected2.py
diff options
context:
space:
mode:
Diffstat (limited to 'pypers/marelli/modulo5/protected2.py')
-rwxr-xr-xpypers/marelli/modulo5/protected2.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/pypers/marelli/modulo5/protected2.py b/pypers/marelli/modulo5/protected2.py
new file mode 100755
index 0000000..fbbb1f3
--- /dev/null
+++ b/pypers/marelli/modulo5/protected2.py
@@ -0,0 +1,11 @@
+class B(object):
+ def __p(self):
+ print "hello!"
+ def __init__(self):
+ self.__p()
+
+class C(B):
+ def __init__(self):
+ self.__p()
+
+c = C()