Pets

Report a typo

We have the following abstract class:

from abc import ABC, abstractmethod


class Pet(ABC):
    @abstractmethod
    def eat(self):
        ...

    def fly(self):
        print("I believe I can fly!")
    
    @abstractmethod
    def make_noise(self):
        ...

    def swim(self):
        ...

We want to create a child class Cat . Which methods must be overridden in this child class?

Select one or more options from the list
___

Create a free account to access the full topic