Programming Python Q1. Animal class hierarchy implementation (10…

Question Answered step-by-step Programming Python Q1. Animal class hierarchy implementation (10… Programming PythonQ1. Animal class hierarchy implementation (10 Marks)  Write classes for the animal class hierarchy.  Write setters and getters methods.  Add three new animal classes into the class hierarchy. Use method overriding. In methods, use print class name and method name.             Create some animal objects and test their methods. Image transcription textAnimal picture food hunger makeNoise() eat() sleep() roam()Feline Canine roam() Hippo roam() makeNoise() eat() LionmakeNoise() eat() Dog Cat name Tiger name mak… Show more… Show moreQ2. Bank System (8 Marks)  Consider a bank that offers its customers the following account types: Checking account: no interest; small number of free  transactions per month, additional transactions are charged a small fee. For example set free transacations/month = 10. The fee will be 1$ for each additional transaction. Savings account: earns interest that compounds monthly  All bank accounts support the getBalance method All bank accounts support the  deposit and  withdraw methods, but the implementations differ Checking account needs to keep track of transactionCount and a method deductFees  Savings  account needs a method addInterest  Below is the inheritance hierarchy:  Image transcription textBankAccount Superclass (more abstract) balancegetBalance() deposit(amount) withdraw(amount)Subclasses (more specific) CheckingAcc… Show more… Show more  Computer Science Engineering & Technology Python Programming COMPUTER S 001123098 Share QuestionEmailCopy link Comments (0)