Which module is commonly used to create abstract base classes in Python?

Options

  • A. math
  • B. abc
  • C. os
  • D. More than one of the above
  • E. None of the above

Correct Answer (Detailed Explanation is Below)

B. abc

Detailed Explanation

The abc module provides ABC and abstractmethod for implementing abstract base classes.