Forum

Number Of Page View:100,000+/Months
LOGIN |New User

Reply

what are the difference between public, default, protected, and private?
Private

Can access  only the class in which it is declared can see it.


This is the default in Java

Protected

Package Private + can be seen by subclasses or package member.

Public

Everyone can see it.


Warning: mysql_close(): supplied argument is not a valid MySQL-Link resource in /home/content/85/10130885/html/forums/index.php on line 95