0 votes
in Python by
Define encapsulation in Python?

2 Answers

0 votes
by

Encapsulation is one of the most important aspects of object-oriented programming. Binding or wrapping of code and data together into a single cell is called encapsulation. Encapsulation in Python is mainly used to restrict access to methods and variables.

0 votes
by

Encapsulation means binding the code and the data together. A Python class for example.

Related questions

+1 vote
asked Jan 11, 2021 in Python by SakshiSharma
0 votes
asked May 23, 2020 in Python by sharadyadav1986
...