What is true about type in the object-oriented programming sense?

What is true about type in the object-oriented programming sense?
A . It is the bottommost type that any object can inherit from.
B. It is a built-in method that allows enumeration of composite objects
C. It is the topmost type that any class can inherit from
D. It is an object used to instantiate a class

Answer: C

Explanation:

In Python, type is the built-in metaclass that serves as the base class for all new-style classes. All new-style classes in Python, including built-in types like int and str, are instances of the type metaclass and inherit from it.

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments