in C Plus Plus by (793 points)

What is encapsulation?

1 Answer

0 votes
by (793 points)

Encapsulation is referred to one of the following two notions.
1) Data hiding: A language feature to restrict access to members of an object. For example, private and protected members in C++.
2) Bundling of data and methods together: Data and methods that operate on that data are bundled together.

Related questions

+1 vote
asked Jul 16, 2019 in C Plus Plus by Indian (793 points)
+1 vote
+1 vote
asked Jul 16, 2019 in C Plus Plus by Indian (793 points)
+1 vote
asked Jul 16, 2019 in C Plus Plus by Indian (793 points)
+1 vote
asked Jul 16, 2019 in C Plus Plus by Indian (793 points)
+1 vote
+1 vote
asked Jul 16, 2019 in C Plus Plus by Indian (793 points)
...