this might even make sense if our bank provides many more types of accounts and in most of these accountsthe withdrawal works as defined in the account class thenmost of the classes derived from account simply default to this behaviorwhile we can provide special behavior for checking accounts subclasses can extend functionality of superclasses we said that oop is great because it helps us to minimize redundancy and thus makes code maintance easier minimizing redundancy means to never write the same piece of code twice compare the constructor methods of our account class and the checkingaccount classwhich is derived from it herewe just copied and pasted parts of what is going on inside the constructor method of account into the constructor method of checkingaccount class account '' class representing an account '' constructor def __init__(selfnumperson) self balance self number num self holder person methods class checkingaccount(account) ''class for objects representing checking accounts shows how methods can be overridden '' constructor def __init__(selfnumpersoncredit_range) self number num self holder person self balance self credit_range credit_range methods as oop is greatthere is of course better way to do it we can call the constructor of superclass in the constructor of subclass in this particular caseit looks like this class checkingaccount(account) ''class for objects representing checking accounts shows how methods can be overridden '' constructor def __init__(selfnumpersoncredit_range) account __init__(selfnumperson self credit_range credit_range methods annemarie friedrichcis lmu munchenws /