The process of hiding the internal details of a class and showing only the things that are necessary is known as ________.

  • Abstraction
  • Encapsulation
  • Inheritance
  • Polymorphism
In Java, encapsulation is the process of hiding the internal details of a class and exposing only the essential parts. It helps in maintaining the integrity of the class and prevents unauthorized access to its data. This concept is fundamental to object-oriented programming.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *