Which statement best describes the concept of encapsulation?

1
When a class inherits from another class, it inherits both the states and methods of that class. 
2
Grouping the commonalities and creating classes that can describe their differences from other classes. 
3
The process of an object controlling outside access to its internal data. 
4
More than one of the above
5
None of the above

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation