Answer Posted / rahul
Encapsulation can be described as a protective barrier
that prevents the code and data being randomly accessed by
other code defined outside the class.
Encapsulation is the technique of making the fields in a
class private and providing access to the fields via public
methods. If a field is declared private, it cannot be
accessed by anyone outside the class, thereby hiding the
fields within the class. For this reason, encapsulation is
also referred to as data hiding.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the main feature of oop?
How to use CMutex, CSemaphore in VC++ MFC
String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?
what is difference between class template and template class?
What is the renewal class?
What exactly is polymorphism?
INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?
Why is polymorphism used?
What is basic concept of oop?
What is polymorphism what is it for and how is it used?
What is polymorphism and example?
What is class in oop with example?
Can destructor be overloaded?
What does oop mean in snapchat?
Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)