πŸ“’ Too many exams? Don’t know which one suits you best? Book Your Free Expert πŸ‘‰ call Now!

  • google app store apple app store
  • βœ–

      Question

      Which module in Python is used to define Abstract Base

      Classes (ABCs)?
      A `os` Correct Answer Incorrect Answer
      B `sys` Correct Answer Incorrect Answer
      C `abc` Correct Answer Incorrect Answer
      D `math` Correct Answer Incorrect Answer
      E `collections` Correct Answer Incorrect Answer

      Solution

      The abc module in Python provides the infrastructure for defining Abstract Base Classes (ABCs). It includes the ABC class (which you inherit from) and the @abstractmethod decorator (which you use to mark methods as abstract).

      Practice Next
      ask-question