MCQ Single Best Answer Difficult

QThe ______ is achieved by combining the methods and attribute into a class.

ID: #22940 TCS Core Java Questions 72 views
Question Info
#22940Q ID
DifficultDifficulty
TCS Core Java QuestionsTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A Abstraction
  • B Encapsulation
  • C Composition
  • D Polymorphism
Correct Answer: Option B

Explanation

The correct option is:

Encapsulation

Encapsulation is the concept of bundling data (attributes) and methods (functions) that operate on the data into a single unit, known as a class, in object-oriented programming.

Share This Question

Challenge a friend or share with your study group.