From 87e2d0e3e3df2e26fb64d2b851e7e7664c3e9375 Mon Sep 17 00:00:00 2001 From: bytesparallel Date: Tue, 12 Jul 2022 11:37:42 -0500 Subject: [PATCH] Demonstrated accessing a member variable several levels of inheiritance above my instantiated object --- fleet.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fleet.py b/fleet.py index 05f8874..f95e727 100644 --- a/fleet.py +++ b/fleet.py @@ -102,6 +102,8 @@ STruck = semi_Truck(2, 4, True, [40.0000, 40.0000], [56.0000, 89.0000], 60, 9000 # Remember to be careful to check that you are running the method on an instance of the class, not on the class definition. STruck.displaySemiAttributes() +print(STruck.isModular) + # Next - implement abstracted methods and constructor classes. Demonstrate use of super if Python supports it. # Use these values in instances and show that values can be accessed regardless of what level they live on.