A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Difference between class and public class
Joined: Sep 07, 2008
Sep 12, 2008 08:15:00
public class Myclass
Is there any difference between the above two classes?
When other classes uses 'Myclass', will they behave in the same manner?
Joined: Jun 09, 2008
Sep 12, 2008 08:38:00
There is no difference in the class itself, but the access to the class is restricted differently.
Give the forum (or google) a search on public access and default access.
edit: While you're at it, search on protected and private access too
[ September 12, 2008: Message edited by: Ronald Schild ]
Joined: Oct 13, 2005
Sep 12, 2008 09:32:00
Welcome to JavaRanch. A good place to start searching is in the
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: Difference between class and public class
Difference b/w class.forName
Is Sun Fooling US
threading single instance vs multiple instances
Generics Lower and Upper Bound
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013