Data Hiding

  1. The data should not go out directly i.e outside person is not allowed to access the data,this is nothing but “Data Hiding”.
  2. The main advantage of data hiding is we can achieve security.By using private modifier we can achieve data hiding.

http://littleredgoblingames.com/?kompot=%D8%A7%D8%B3%D8%B9%D8%A7%D8%B1-%D8%A8%D9%8A%D8%B9-%D8%A7%D9%84%D8%B0%D9%87%D8%A8-%D9%81%D9%8A-%D8%A7%D9%84%D8%B3%D8%B9%D9%88%D8%AF%D9%8A%D8%A9 اسعار بيع الذهب في السعودية

تحليل الاسهم السعودية اليوم public class Account{ private double amount; private long accountNo; }

البنك الراجحي الاسهم

Abstraction

  1. Hiding the internal implementation is nothing but abstraction.
  2. The main advantages of abstraction are.
    • we can achieve security as we are not highlighting internal implementation.
    • Enhancement will become easy.Because with out effecting outside person we can change our internal implementation.
  3. By using Abstract classes and interfaces,We can achieve abstraction.