How python supports encapsulation with respect to functions?



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

Post New Answer

More Python Interview Questions

What is a static method in python?

1 Answers  


What is the namespace in python?

1 Answers  


Explain indexing and slicing operation in sequences

1 Answers  


Why we are using a python dictionary?

1 Answers  


Can you count to zero?

1 Answers  


Is javascript better than python?

1 Answers  


What is Java implementation of Python popularly know?

1 Answers  


What is Python Decorator?

1 Answers  


How many constructors can a class have?

1 Answers  


What are python packages?

1 Answers  


What is abc abstractmethod?

1 Answers  


What is file context manager?

1 Answers  


Categories