Multiple choice

Which of the following programming languages illustrates data encapsulation?

  1. Basic

  2. Smalltalk

  3. Cobol

  4. Fortran

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Smalltalk is a pure object-oriented programming language that emphasizes data encapsulation, where data and the methods that operate on it are bundled together within objects.