Proper abstraction

Report a typo

Which of the following classes is a properly declared abstract class?

from abc import ABC, abstractmethod


class Car(ABC):
    ...


class Figure(ABC):
    def draw(self):
        ...


class Person(ABC):
    @abstractmethod
    def work(self):
        ...


class Plant:
    @abstractmethod
    def bloom(self):
        ...
Select one option from the list
___

Create a free account to access the full topic