spot reply(meow data hacker(data reply(hello worldanimal replycalls cat speak animal replycalls primate speak figure - zoo hierarchy composed of classes linked into tree to be searched by attribute inheritance animal has common "replymethodbut each class may have its own custom "speakmethod called by "reply the dead parrot sketch consider the object embedding structure captured in figure - code set of python classes to implement this structure with composition code your scene object to define an action methodand embed instances of the cus tomerclerkand parrot classes (each of which should define line method that prints unique messagethe embedded objects may either inherit from common superclass that defines line and simply provide message textor define line themselves in the endyour classes should operate like thispython import parrot parrot scene(action(customer"that' one ex-bird!clerk"no it isn' parrotnone advanced class topics activate nested objects