Question 17
A developer designs a class with private data like and , and allows access only through methods such as and . This describes which of the following object-oriented programming concepts?
Inheritance
Encapsulation
Association
Dependency
A developer designs a class with private data like and , and allows access only through methods such as and . This describes which of the following object-oriented programming concepts?
Inheritance
Encapsulation
Association
Dependency
Correct answer
Encapsulation
Question 17 of 25 in the IIT Madras BS Software Engineering (Software Engineering) Quiz 2 paper sat on 12 Apr 2026, in the January 2026 term (Software Engineering 07 Apr 26). It carries 4 marks.