QUESTION IMAGE
Question
which occurs when private details of a class are hidden from other classes or parts of the program that uses instances of the class?
encapsulation
polymorphism
inheritance
operation overloading
Encapsulation is the process of hiding the internal state and implementation details of an object and exposing only the necessary methods to interact with it. When private details of a class are hidden from other classes or parts of the program using its instances, it is encapsulation. Polymorphism allows objects of different classes to be treated as objects of a common super - class. Inheritance is about a class inheriting properties and methods from another class. Operation overloading is redefining an operator for a user - defined data type.
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
A. encapsulation