Give two advantages to hiding representation details using objects?
The two advantages are given below:-
1. Information hiding, In programming, the process of hiding details of an object or function. Information hiding is a powerful programming technique because it reduces complexity. One of the chief mechanisms for hiding information is encapsulation combining elements to create a larger entity.
2.The second advantage is yielding flexibility, such as allowing a programmer to more readily modify a program. Information hiding is also used to prevent programmers from intentionally or unintentionally changing parts of a program.
Get Answers For Free
Most questions answered within 1 hours.