0 votes
in Python by
What are metaclasses and when are they used?

1 Answer

0 votes
by
Metaclasses are classes for classes. A metaclass can specify certain behaviour that is common for many classes for cases when inheritance will be too messy. One common metaclass is ABCMeta, which is used to create abstract classes.

Related questions

+1 vote
asked Jul 16, 2020 in Python by GeorgeBell
0 votes
asked Sep 4, 2021 in Python by SakshiSharma
...