MCQ Practice Single Best Answer Topic: Basic Concept of OOP

Q The wrapping up of data members and Member methods ________ into a single unit is called Encapsulation.

Question ID
#19901
Subchapter
Basic Concept of OOP
Action
Choose one option below

Choose Your Answer

Click an option to check whether your answer is correct.

  • A separate
  • B far
  • C close
  • D together
Correct Answer: C

Explanation

close

The wrapping up of data members and member methods into a single unit is called encapsulation. Encapsulation involves bundling the data (attributes) and methods (functions) that operate on the data into a single unit, which is typically a class in object-oriented programming. This bundling keeps the data and methods close together within the class, promoting modularity and organization.

Share This Question

Share this MCQ with your friends or study group.