aboutsummaryrefslogtreecommitdiffstats
path: root/examples/samplebinding/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/samplebinding/main.py')
-rw-r--r--examples/samplebinding/main.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/samplebinding/main.py b/examples/samplebinding/main.py
index 144b36933..f6f9f1fa9 100644
--- a/examples/samplebinding/main.py
+++ b/examples/samplebinding/main.py
@@ -43,6 +43,7 @@
from Universe import Icecream, Truck
+
class VanillaChocolateIcecream(Icecream):
def __init__(self, flavor=""):
super().__init__(flavor)
@@ -53,6 +54,7 @@ class VanillaChocolateIcecream(Icecream):
def getFlavor(self):
return "vanilla sprinked with chocolate"
+
class VanillaChocolateCherryIcecream(VanillaChocolateIcecream):
def __init__(self, flavor=""):
super().__init__(flavor)
@@ -64,6 +66,7 @@ class VanillaChocolateCherryIcecream(VanillaChocolateIcecream):
base_flavor = super(VanillaChocolateCherryIcecream, self).getFlavor()
return base_flavor + " and a cherry"
+
if __name__ == '__main__':
leave_on_destruction = True
truck = Truck(leave_on_destruction)