both the savings account and the checking account are some type of account we can deposit money into either account type the account statements to be printed out are the same for the two account types the savings account and the checking account both have the following attributesaccount number account holder balance the savings accounts have an additional parameterthe interest ratebut which is the same for all savings accounts savings accounts have behavior that checking accounts don' havewe can apply the interest rate on their balances each checking account has its own particular credit range cash withdrawal works differently for the two account types in the savings accountthe balance may not be less than while for checking accountsthe balance may not be less than the credit range defined for the particular client base classes provide general functionality all of the above considerations will be reflected in our class design first of allwe will code base class which implements all the things that are shared by the two types of accountsthe attributes holdernumber and balancemethods for deposit and withdrawal as well as for printing out the state of the account the following listing shows our base classaccountwhich doesn' look much different from the previous class in factwe could instantiate objects directly from this class and use them as accounts class account '' class representing an account '' constructor def __init__(selfnumperson) self balance self number num self holder person methods def deposit(selfamount) self balance +amount def withdraw(selfamount) if amount self balance amount self balance self balance -amount return amount def __str__(self) res "**account info ***\ res +"account id:str(self number"\ res +"holder:self holder "\ res +"balancestr(self balance"\ return res annemarie friedrichcis lmu munchenws /