There are four access specifiers in java
1. public
2. private
3. protected
4. default
A class with public access can be seen by all classes from all packages.
A class with private access can be visible in the same class.
A class with protected access can be seen by classes in the same package and by a subclass, even if the subclass is in a different package.
A class with default access can be visible only by classes within the same package.
SOURCE : www.referjava.com
3 comments:
The new policy will allow drivers of old vans to scrap their bangers in exchange for a greatly -discounted Vauxhall models.
Companies are trying out Fiat leasing over the regular options of buying.
Automoblie leases are a drug for status-conscious
people who require the rush of driving a 'better' car than
they can really afford.
My website Best Car Leasing Deals
These oils have been tested and proven to be
effective against a variety of warts. Touching your chin frequently will transfer these
germs and dirt to the chin area which may result in acne on chin.
The essence of natural mole removal is the use of herb and folk
remedies.
My blog post ... Scar Removal
As Bangalore distinctively experienced the most preferred destination for the leading housing
companies to express the latest housing projects known responsible for the growth of the city in general.
But many people don't know how to earn profits this way. In 2013, Real Estate Pune market appears to be strong, with some locations notably poised for growth.
Also visit my homepage: asunto vuokra
Post a Comment