The three main principles of object-oriented programming are inheritance, polymorphism and:
AConcatenation
BEncapsulation
CCompilation
DCorrelation
Answer & Solution
Correct answer: B. Encapsulation
1. Data is bundled with its behaviour.
2. Internals are hidden from outside.
3. It is encapsulation.
_Source: OpenStax Introduction to Computer Science, Chapter 7, High-Level Programming Languages._
Keep practising Programming Languages
Browse all Programming Languages questions for Computer Science — Uganda, or explore more Computer Science topics.