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
The collection of methods that an objects implements that can be called by other objects. 

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation