Java- Encapsulation / Chapter -3 / OOP's Concept

  1. The process of binding the data and corresponding method into a single unit is nothing but "encapsulation".                  
  2. If any component follows data hiding and abstraction such type of component is said to be encapsulated component.


  3. The main advantage of encapsulation are :-
  • We can achieve security .
  • Enhancement will become easy.
  • It improves maintainability of the application.
 Note:The main disadvantage of encapsulation is, it increase length of the code and reduce the execution speed of the application.

No comments:

Post a Comment

Be the first to comment!

Don't just read and walk away, Your Feedback Is Always Appreciated. I will try to reply to your queries as soon as time allows.

Note:
1. If your question is unrelated to this article, please use our Facebook Page.
2. Please always make use of your name in the comment box instead of anonymous so that i can respond to you through your name and don't make use of Names such as "Admin" or "ADMIN" if you want your Comment to be published.

Regards,
JavaByChetan
Back To Home

Flipkart End Of Season Sale






© Copyright 2017 Javabychetan.blogspot.com