answersLogoWhite

0


Best Answer

Encapsulation also implements data hiding in an object oriented programming design. By encapsulating various methods & data objects into a single class they can also be hidden from all the other classes. You can declare the variables and methods as private and that way you can hide the data from the other classes in the application.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Why encapsulation does not implement information hiding in object orientation?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What are the impacts of encapsulation in abstraction and information hiding?

It confounds what has been confounded It confounds what has been confounded


What is encapsulation and data hiding in dbms?

ODBMS stands for object oriented database management system. Encapsulation in ODBMS can be defined as binding of data together.


How data hiding is achieved in java?

Data hiding in the java is achieved through the use of encapsulation.


What are the various elements of Object oriented programming?

Encapsulation, data hiding, inheritance and polymorphism.


What is the difference between encapsulation and data hiding?

While many people cite private class members as being an example of information hiding (another term for data hiding) this is not strictly true. In C++, for instance, the use of the private keyword does not hide any information, it simply limits access to that information. After all, the fact something is inaccessible does not mean it is hidden. The private keyword simply means the information has been placed in a cage but only members of the class have access inside that cage; neither the cage nor the information are hidden in any way, shape or form. The same analogy is also true of many other languages. So when we speak of data or information hiding we simply mean limiting access to that information.In some programming languages this is also referred to as encapsulation. However, in object-oriented programming, encapsulation has another meaning altogether: it is the means by which data and the methods that operate upon that data are combined into a self-contained entity, an object. Encapsulation in this sense typically incorporates data hiding, but it is the encapsulation itself that provides the means by which that data has limited access. However, encapsulation goes beyond mere data hiding in that it also provides an interface to some or all of the hidden data. This not only allows the data to be manipulated in a highly-controllable and robust manner, but also permits the underlying data storage mechanism as well as the methods that operate upon that data to be altered without affecting the object's existing consumers. In other words, the underlying implementations may change quite drastically, but their effects are limited to the class of object itself. If you think of an object as being a protective capsule that can be internally altered without affecting the outside world, the notion of encapsulation becomes that much clearer (it is no coincidence that the verb encapsulatederives from the French noun capsule).


What term in java is used to indicate that a class's internal state is hidden from its clients?

Encapsulation............Hiding the data from others


What is the term that describes the hiding of implementation details of objects from each other in a C plus plus class?

Encapsulation.


Is it true that wrapping up of data of different types into a single unit is known as encapsulation?

Not quite. Encapsulation means to combine data and the methods that work upon that data into a single unit (an object), such that access to both the data and methods is restricted in a controlled manner. Data-hiding is fundamental to encapsulation.


What is different between inheritance and encapsulation?

wrapping up of data and function into a single unit is called encapsulation where polymorphism is the ability to take more than one form


What does it mean by encapsulation?

Encapsulation makes class fields private, preventing access to it from outside of the class. Essentially, this data is hidden from the rest of the program. It is possible to allow access to the fields via public methods.


What is data hiding and its advantages?

Data hiding is the concept of restricting access to certain information within a software component or object. It helps to improve security by preventing direct access to sensitive data and promotes encapsulation, allowing for better organization and maintenance of code. Additionally, data hiding facilitates information hiding, where the internal details of an object can be hidden and only relevant information is exposed to the external world.


What are the main features of OOP in c plus plus?

The main features of OOP are the same regardless of the language. They are: encapsulation; data hiding; inheritance; and polymorphism.