answersLogoWhite

0

What is Information Hiding in OOP?

Updated: 12/13/2022
User Avatar

Wiki User

10y ago

Best Answer

There is no such concept as information hiding in OOP. While many programmers incorrectly believe private and protected member variables are hidden in a class, these access specifiers do nothing more than limit access to those variables, they do not actually hide anything. Information hiding is actually a function of binary executables and libraries, not OOP, because information can be obfuscated by procedural machine code far more easily than with structured source code.

When referring to OOP, we use the term abstraction rather than information hiding. Abstraction relates to the way in which it is not necessary to know the underlying storage mechanism of a class, nor its implementation details, in order to make use of a class. This allows the class designer to alter the class design specification without affecting the existing consumers, provided the existing abstract interface remains unaltered. In other words, it reduces maintenance by localising changes within the class, rather than affecting code outside of the class as would occur in a non-OOP environment. It is the interface which provides the abstraction, but it does not physically hide anything. That is, while it is not necessary to know the underlying storage or implementation details of the class, there is absolutely nothing to prevent you from looking at those details, even if those details are obfuscated within a binary library (just because something is hidden doesn't mean it can't be found with a bit of effort).

User Avatar

Wiki User

10y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is Information Hiding in OOP?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

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.


Is there anything similar between C and C plus plus with reference to data hiding?

No. Data hiding is a feature of object oriented programming. C does not support OOP, and therefore has no private member access. All members are public in C.


Why is OOP important?

An OOP is a computer programming methodology that focuses on data rather than processes, with programs composed of self-sufficient modules (objects) containing all the information needed to manipulate a data structure. Abbreviated OOP.


What is difference between oop and advanced oop?

the word advanced. If these 2 are course titles, the institute should have the course descriptions. In software development, it would be the first time for me to hear about advanced oop. (what is the basic oop, then?)


What is Object Oriented Programming without the principle of Polymorphism?

Polymorphism is an important principle in OOP; it would be hard to imagine OOP without it. Other important principles are inheritance, and encapsulation.Polymorphism is an important principle in OOP; it would be hard to imagine OOP without it. Other important principles are inheritance, and encapsulation.Polymorphism is an important principle in OOP; it would be hard to imagine OOP without it. Other important principles are inheritance, and encapsulation.Polymorphism is an important principle in OOP; it would be hard to imagine OOP without it. Other important principles are inheritance, and encapsulation.

Related questions

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.


What is data hidding in oop?

Data hiding in OOP refers to the practice of hiding the internal state of an object from the outside world. This is achieved by encapsulating the data within the object and only allowing access to it through specified methods, known as getters and setters. By hiding the data, we protect it from being modified unintentionally and improve the integrity of the object's internal structure.


Is there anything similar between C and C plus plus with reference to data hiding?

No. Data hiding is a feature of object oriented programming. C does not support OOP, and therefore has no private member access. All members are public in C.


What is Message sending in OOP?

In its simplistic explanation its where one object sends information to another object.


Why is OOP important?

An OOP is a computer programming methodology that focuses on data rather than processes, with programs composed of self-sufficient modules (objects) containing all the information needed to manipulate a data structure. Abbreviated OOP.


When was ZZT-oop created?

ZZT-oop was created in 1991.


How do you ally oop in 2k9?

how to ally oop in nba 2k9


What is a one letter initial called?

The 'Initial'


Where can one find more information about hiding blogs?

There are many places where one can find more information about hiding blogs. One can find more information about hiding blogs at popular on the web sources such as Square Space and Blogs By Heather.


What bird goes oop oop oop?

The hoopoe makes a sound that goes 'oop oop oop.' In many cultures, the bird has a similar name because of this particular call they are known for. Hoopoes are birds from the Afro-Eurasian region. They have distinctive feather patterns in their wings and crests, as well as flat dark bills.


What is the USA hiding?

The United States is hiding information that it considers would jeopardize its national security.


What is the duration of Allez Oop?

The duration of Allez Oop is 1260.0 seconds.