Advertisements
Advertisements
Question
Putting all relevant data and methods in one boundary is called:
Options
Abstraction
Encapsulation
Polymorphism
Inheritance
MCQ
Advertisements
Solution
Encapsulation
Explanation:
Encapsulation is the process of combining data (variables) and the methods (functions) that operate on that data into a single unit (class). It also helps protect the data from unauthorized access.
shaalaa.com
Is there an error in this question or solution?
