Question: Python 3 help..posted this multiple times no one helps :( Lab 5 - Using Classes +Inheritance (60 pts) - Due the end of week 11
Python 3 help..posted this multiple times no one helps :(






Lab 5 - Using Classes +Inheritance (60 pts) - Due the end of week 11 (This lab was originally designed by Professor Laura Reeve for C++) Objectives - The objectives of this lab assignment are to give you an opportunity to 1. Implement Single inheritance of data and behavior from base classes into derived classes 2. Observe Polymorphism at work by overriding two methods that need to be specialized in the derived classes. 3. Observe how constructors and destructors are called in an inheritance hierarchy. Specifications -Read through the whole lab before beginning. Near the end of this lab write-up, you will find a VERY USEFUL SCHEME to help you develop and test this lab exercise In this lab, you are to develop three telephony classes related via an "Is-A" (inheritance) relationship. The three telephony application classes represent telephone numbers (TelephoneNumber), working telephone numbers WorkingTN , and billing telephone numbers BillingTNThe telephone number class will contain private instance variables for an NPA Numbered Plan Area - otherwise known as the 3-digit area code), an NXX (a 3-digit prefix), and a Line (the 4-digit line number). For example, for CTU the NPA is 719, NXX is 598, and Line is 0200. These will be implemented as character string instance variables because some Local Exchange Carriers (such as Century Link, Verizon, etc.) must often use alphanumeric telephone numbers for fictitious numbers or software-driven numbers which go beyond the normal hardware-switched services. The WorkingTN is a number assigned to an actual customer. The class contains the customer's name. A BillingIN is a number under which a customer chooses to have one or more WorkingTNs billed. Our simplified BillingTN class will contain a single integer instance variable representing the mumber of WorkingTNs being billed to that BillingTN (a more extended class would contain references to, or lists of, the WorkingTNs billed to a single BillingTN). In your inheritance tree the base class will be TelephoneNumber. The WorkingTN class inherits from TelephoneNumber and then the BillingIN class inherits from WorkingTV. You will be using inheritance AND polymorphism to write the contents of objects of these classes to an output stream by overriding inherited methods in the derived classes
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
