What is python encapsulation?
Answer / Ayushi Srivastava
Encapsulation in Python refers to binding data and functions that operate on that data into a single unit, such as a class. This helps keep the internal details of an object hidden from other parts of the code, promoting modularity, and reducing complexity.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the use of try, except, finally and raise in error handling?
Do lists start at 0 or 1?
Explain the difference between a list and the tuple?
Why is python good for beginners?
Is haskell faster than python?
What is meta class in python?
How to write multiple statements in a single line in python?
Is r easier than python?
Boolean have 2 possible values. Are there types in python that have 3 possible values?
In python, what is theano?
What does != Mean in python 3?
Is it better to learn python or java?