(Solved) : Python Ll Create Following Classes Using Inheritance O Base Class Called Pet O Mix Class C Q37199727 . . .
PYTHON!You’llcreate the following classes using inheritance:oA baseclass called PetoA mix-inclass called JumperoA Dog classand a Cat class that each inherit from PetandjumperoTwo classesthat inherit from Dog: BigDogandSmallDogoOneclassesthat inherit from Cat: HouseCat•The generalskeleton of the Pet, Dog, and BigDog classes will be given toyou, but youwill have to identify the required inheritance for aclass. Youwill be responsible for writing the functionality of thoseclasses.•Adescription of each class’s functionality, as well as the data touse, is in the requirements below.Requirements:
Use the providedtemplate to complete the following. The details are in the skeletonfile.
1.The Petclass:a.Assign values totwo variables: kind and colorb.Implement theconstructor to initialize the pet’s namec.Implementdo_tricksmethod perskeleton2.The Jumperclassa.Implement the jumpmethod per the skeleton3.The Dogclassa.Decide whichclasses to inherit from and implement inheritanceb.Change the kind tocaninec.Implement__str__ per skeletond.Implement __call__per skeleton4.TheBigDogclassa.Change the color totanb.Implement__str__ per skeletonc.Implement speak perskeleton5.TheSmallDogclassa.Change the color tobrindleb.Implement__str__ per skeletonc.Implement speak perskeleton6.The Catclassa.Change the kind tofelineb.Implement__str__ per skeletonc.Implement speak perskeletond.Implement climb perskeleton7.TheHouseCatclassa.Change the color towhiteb.Implement__str__ per skeletonc.Implement speak perskeleton8.Run the codeaccording to the following:a.Instantiateeach class(except jumper)b.Create a list ofthe instantiated objectsc.Loop through theobjectsd.For eachobject:i.Print__str__ii.print the kind ofpetiii.Print the Color ofthe petiiii.Have the pet dotricksv.if applicable,print rollover action and the owners namevi.If applicable, havethe pet climbvii.To separate eachpet print underscores
Sample Output
Your output shouldlook something like this
<__main__.Pet object>
animal
brown
Tazis doingtricks
—————————————-
I am a cat namedLion
None
feline
brown
Lion is doingtricks
Lion saysMeow!!!
Lion isjumping
Lion is climbingthe curtains again
—————————————-
I am a dognamed Roo
None
canine
brown
Roois doingtricks
Rooisjumping
Roois rollingover
My owner isGeorge
—————————————-
Noah is a large,muscular dog
canine
tan
Noah is doingtricks
Noah saysWoof!!!
Noah isjumping
Noah is rollingover
My owner isGeorge
—————————————-
Lucky is a tiny,cute dog
canine
brindle
Lucky is doingtricks
Lucky saysYip!
Lucky isjumping
Lucky is rollingover
My owner isGeorge
—————————————-
Zebra is a cat withfluffy, white fur
feline
white
Zebra is doingtricks
Zebra saysPurr
Zebra isjumping
Zebra is climbingthe curtains again
Expert Answer
Answer to PYTHON! You’ll create the following classes using inheritance:o A base class called Peto A mix-in class called Jumpero…
OR