Which keyword is used in Python to create a derived class?
- baseclass
- class
- extends
- superclass
In Python, the 'class' keyword is used to create both base (parent) classes and derived (child) classes. The derived class is created by inheriting from a base class.
Loading...
Related Quiz
- When defining a custom exception, it should typically be derived from the built-in ____ class.
- What keyword is used to define a function in Python?
- You are developing a Python application where a certain function’s output is dependent on expensive computation. How would you use decorators to optimize this scenario?
- To make a module's functions directly accessible, you can use the _______ statement.
- You are developing a banking software, and you need to ensure that no withdrawal exceeds the account balance. Which approach would be the most appropriate to handle such a situation?