In Python, if you don’t specify a metaclass for a new class, it will implicitly use ____ as its metaclass.
- base
- metaclass
- object
- type
In Python, if you don't specify a metaclass for a new class, it will implicitly use type as its metaclass. type is the default metaclass for all classes unless otherwise specified.
Loading...
Related Quiz
- How can you access a method from a base class in a derived class if the method is overridden in the derived class?
- How would you find the shortest path in a weighted graph?
- The contextlib module provides a utility called _______ to create context managers using generator functions.
- You are tasked with designing a class structure where some classes share some common behavior but also have their unique behaviors. How would you design such a class structure?
- What is the result of the operation True or False and True?