Question: a - 4 - mancingpensesand epentk ( veltif ) primit ( Animal specakes ) class ( Fingrkniment ) :detf move ( selt ) print

a-4-mancingpensesand epentk(veltif)primit("Animal specakes)class (Fingrkniment):detf move(selt)print("Dog meliks")class Cat(Animal):def speak(self):print("Cat me mos")d = Dog()d.move(d. speak()c=Cat()c.movelc.speak()a = Animal(C)a.move()a.speak()
Question 9
Which of the following are mistakes found in the above code?
Select ALL that apply.
The class "Dog" is missing the method "speak". This will cause an error.
The class "Dog" should not have defined the method "move".
The class "Cat" is missing the method "move", This will cause an error.
The class "Cat" should not have defined a method "speak".
The line d=Dog0 will cause an error.
The line c= Cat() will cause an error.
The line a= Animal0 will cause an error.
a - 4 - mancingpensesand epentk ( veltif ) primit

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!