Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Muhammad Imran AnsariRank #326 · 7.6K reputationPosted Oct 26, 2022, 2:37 PM EDT
In OOP/OOD Information hiding is achieved by use of the three types/access specifiers of a class:
Public: If a class member is public, it can be used anywhere without the access restrictions.
Private: if a class member is private, it can be used only by the members and friends of class.
Protected: if a class member is protected, it can be used only by the members and friends of class and the members and friends of classes derived from class.
Uday DodiyaRank #239 · 10.3K reputationPosted Oct 27, 2022, 1:26 AM EDT
Information hiding for programmers is executed to prevent system design change. If design decisions are hidden, certain program code cannot be modified or changed. Information hiding is usually done for internally changeable code, which is sometimes especially designed not to be exposed
Abhishek YadavRank #217 · 11.3K reputationPosted Oct 27, 2022, 4:39 AM EDT
Information hiding for programmers is executed to prevent system design change. If design decisions are hidden, certain program code cannot be modified or changed. Information hiding is usually done for internally changeable code, which is sometimes especially designed not to be exposed
Brahma Prakash ShuklaRank #633 · 3.8K reputationPosted Nov 4, 2022, 9:44 AM EDT
Public: If a class member is public, it can be used anywhere without the access restrictions.
Private: if a class member is private, it can be used only by the members and friends of class.
Protected: if a class member is protected, it can be used only by the members and friends of class and the members and friends of classes derived from class.