even simplerwhen calling annesacc deposit( )python starts looking for deposit method at the annesacc objectbut doesn' find one there it then looks at the class from which the object was createdwhich happens to be savingsaccount it doesn' find the method there eitherso it continues looking for the class in the superclass of savingsaccountaccountwhere it finally finds the method the apply interest(selfmethod is found at the savingsaccount classwhich means that the search stops here and executes this method subclasses can override the behavior of their superclasses nowwe define class called checkingaccount which is also based on the account class howeverthe general withdraw(selfamountmethodwhich we defined in the account class and which does not allow withdrawal to result in negative balancedoes not apply to checking accounts recall that checking account may have negative balancebut only up to credit range which is defined on per-customer basis the following listing shows how we can redefine/replaceor (as in oop-speakoverride methods of superclass in subclass class checkingaccount(account)''class for objects representing checking accounts shows how methods can be overridden ''constructor def __init__(selfnumpersoncredit_range)print("creating checkings account"self number num self holder person self balance self credit_range credit_range methods def withdraw(selfamount)amount min(amountabs(self balance self credit_range)self balance -amount return amount annemarie friedrichcis lmu munchenws /