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.
EXAMPLEclass 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
nice
ReplyDelete