Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

which occurs when private details of a class are hidden from other clas…

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

Explanation:

Brief Explanations

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.

Answer:

A. encapsulation