as well as its child class method of live_with_anemone(if we try to use the live_with_anemone(method in gf objectwe'll receive an error this is because the method live_with_anemone(belongs only to the clownfish child classand not the fish parent class overriding parent methods so farwe have looked at the child class goldfish that made use of the pass keyword to inherit all of the parent class fish behavioursand another child class clownfish that inherited all of the parent class behaviours and also created its own unique method that is specific to the child class sometimeshoweverwe will want to make use of some of the parent class behaviours but not all of them when we change parent class methods we override them when constructing parent and child classesit is important to keep program design in mind so that overriding does not produce unnecessary or redundant code we'll create newfish child class of the fish parent class but suppose this newfish has one eye and can' swim backwards but as it is child class of fish class it inherits all the features of fish class like noofeye= and the swim_backwards(method of fish class which not our requirements for thatwe'll override swim_backwards(method the __init__(constructor method and the exampleclass fishdef __init__(selfnamenoofeyes= last_name="fish")self name=name self noofeyes noofeyes self last_name last_name def swim(self)print("the fish is swimming "def swim_backwards(self)print("the fish can swim backwards "class goldfish(fish)pass class clownfish(fish)page