Java is based on OOP concept, so the concept of access specifiers is
similar to C++.

Check out the following links -

http://xahlee.org/java-a-day/access_specifiers.html

http://www.javabeginner.com/learn-java/introduction-to-java-access-modifiers

Hope this helps.

On Mar 10, 4:22 pm, deepak murali <deepakmural...@gmail.com> wrote:
> in object oriented programming language like c++, we use access
> specifiers like public,private and protected,
> i know how to use them,but dont know what is main advantage of using
> them.
>
> are those access specifiers used to protect files, hide passwords etc
> or they serve for different purpose

-- 
To post to this group, send email to javaprogrammingwithpassion@googlegroups.com
To unsubscribe from this group, send email to 
javaprogrammingwithpassion+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en

Reply via email to