Multiple choice general knowledge science & technology

Class is

  1. Method & Interface Only

  2. Encasulation

  3. Database

  4. None of the Above

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

A class in object-oriented programming is a blueprint that encapsulates data and methods together. Encapsulation bundles related data and behavior into a single unit, hiding internal details. Options A, C, and D are incorrect - classes are not just interfaces, not databases, and 'none' is wrong.