Submit Your Site To The Web's Top 50 Search Engines for Free! Java Tutorial: Learn Java Basics For Free | Learn Java

Friday, September 27, 2019

What is data hiding in a program? - Learn Java


What is data hiding in a program? - Learn Java

  • Over internal data should not go out directly that is outside person can't access our internal data directly.
  • By using private modifier we can implement data hiding .  

Data Hiding In Java Example Program.

EXAMPLE 
       
        class Account
       {
           private double balance;
           ---------------------------;
          ----------------------------;
        }
    After providing proper username and password only, we can access our Account 
    information.
   Main advantage of data hiding is security.


learn java online free and learn java programming this is the
best way to learn java. this is best java tutorial.in this tutorial          
all the programs start with hello java,hello world.Enterprise applications         
programming language

1 comment:

Java Inheritance Update 2023 With Program And Example

  Java Inheritance Update 2023 With Program And Example  nheritance is one of the essential concepts in object-orientated programming  (OOP)...