Which concept combines data and methods into a single unit?

  • AEncapsulation
  • BInheritance
  • CPolymorphism
  • DNone of these
Show answerHide answer

Correct answer A

Encapsulation combines data and methods in one unit. A class is commonly used to achieve encapsulation. It helps protect data from direct outside access.