How python supports encapsulation with respect to functions?
Answer / Rahul Chandra
Python supports encapsulation through the use of scopes, namespaces, and functions that hide their implementation details from the user. By default, functions in Python are encapsulated in their own namespace, making it difficult for other code to access or modify their internal state.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is a static method in python?
What is the namespace in python?
Explain indexing and slicing operation in sequences
Why we are using a python dictionary?
Can you count to zero?
Is javascript better than python?
What is Java implementation of Python popularly know?
What is Python Decorator?
How many constructors can a class have?
What are python packages?
What is abc abstractmethod?
What is file context manager?