Technical Discussion :: C++
Home > Technical Interview Q&A > C++ > Discussion
4 / 187
What is encapsulation?
Answer:
Encapsulation is binding of attributes and behaviors. Hiding the actual implementation and exposing the functionality of any object. Encapsulation is the first step towards OOPS, is the procedure of covering up of data and functions into a single unit (called class). Its main aim is to protect the data from out side world.
Asked In ::
Anjan Singh
23 Feb, 2019 5:07 AM
Packaging an object’s variables within its methods is called encapsulation.
Anjali
23 Feb, 2019 5:07 AM
Encapsulation is binding of attributes and behaviors. Hiding the actual implementation and exposing the functionality of any object. Encapsulation is the first step towards OOPS, is the procedure of covering up of data and functions into a single unit (called class). Its main aim is to protect the data from out side world.