Accenture Primer
Accenture DumpmediumAccenture PrimerAccenture-Primer-Dump

Information hiding is achieved through which OOP principle?

Answer options

A
Inheritance
B
Encapsulation
C
Typing
D
Hierarchy

Correct answer: Encapsulation

Explanation

Encapsulation achieves information hiding by bundling data (fields) and methods together in a class and restricting direct access to an object's internal state through access modifiers (private, protected). Inheritance relates to reuse; Typing and Hierarchy are not the primary OOP principle for information hiding.

Related Accenture Accenture Primer questions

Practice more Accenture Accenture Primer questions

PrimerDumps has 1400+ primer questions, 2026 mocks and coding hands-on — all free.