The concept of encapsulation involves bundling the data () and the methods () that operate on the data into a single unit. 

  • objects, functions 
  • variables, operators 
  • members, methods 
  • attributes, functions
Encapsulation is a key concept in object-oriented programming where the data (members) and the functions (methods) that operate on this data are bundled together as a single unit known as a class.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *