If a class in Python has a method named _protectedMethod, it's a convention that this method is intended to be _______.
- internal
- private
- protected
- public
In Python, methods with a single leading underscore like '_protectedMethod' are considered protected, indicating they should be used with caution.
Loading...
Related Quiz
- The _____ method in Python is used to delete the object and perform the cleanup activities.
- What's the primary difference between from module import * and import module as alias?
- What is the primary purpose of Flask's route() decorator?
- You are given a task to parse string dates in various formats and convert them to datetime objects in Python. Which module would you use to achieve this?
- How do you convert a list of lists into a single flat list in Python?