Question: AS 3 - employing inheritance and polymorphism conceptsThe Ham Webstore, Version 3 Learning Objectives: Design classes in the Python 3 programming language which act as
AS employing inheritance and polymorphism conceptsThe Ham Webstore, Version Learning Objectives: Design classes in the Python programming language which act as parent classes and which allow us to move as much code as possibly as highup in the inheritance hierarchy to save coding, and to make our programs more flexibleScenarioCongratulations. You've now got a working package creation system. That's awesome!But you have recently learned about inheritance and polymorphism and realize that, as this store grpws it will pay to have a program structure that can change with the growth.In order to realize these advantages, you're going to have to do some restructuring. The idea behind inheritance is to put as much code as makes logical sense as high up in the hierarchy as you can. That way, subclasses child classes can inherit this code from the superclass parent class with the ability to modify partially override with a super call to use the original code or replace completely override the abilities of the superclass.A map to the future!The following diagram is a very simplified form of UML Unified Modelling Language a system whereby program structures can be represented independent of a programming language, allowing the choice of programming language to be made later, if desired.For a more complete view of UML, seephttps:enwikipedia.orgwikiUnified ModelingLanguageIn this case, we're using a very simple form of UML, and we've colourcoded it to make it easier for you to understand. Things that are yellow are abstract classes that won't be directiv
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
