What is encapsulation in c++?

Answers were Sorted based on User's Feedback



What is encapsulation in c++?..

Answer / nashiinformaticssolutions

An object-oriented programming concept called encapsulation unifies functions and data into a single entity. This is a crucial step in the data hiding process that shields data from outside intervention. Classes and access modifiers are used in the implementation of encapsulation.

Is This Answer Correct ?    0 Yes 0 No

What is encapsulation in c++?..

Answer / Priyanka Joshi

"Encapsulation is the practice of keeping fields within a class private and providing public access functions to manipulate those fields. It hides the internal details and complexities of an object from outside interference, protecting data integrity."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

Difference between class and structure.

1 Answers  


What is the difference between a type-specific template friend class and a general template friend class?

1 Answers  


What are proxy objects?

2 Answers  


What is a catch statement?

1 Answers  


Which is better turbo c++ or dev c++?

1 Answers  


What are virtual functions in c++?

1 Answers  


what is data Abstraction

2 Answers  


If there are 1 to 100 Numbers in array of 101 elements. Which is the easy way to find repeated number?

2 Answers   Persistent,


What can I safely assume about the initial values of variables which are not explicitly initialized?

1 Answers  


How do I start a c++ project?

1 Answers  


What is singleton class in c++?

1 Answers  


what are the iterator and generic algorithms.

1 Answers  


Categories