Results 1 to 2 of 2
Thread: access modifier in constructor
- 06-22-2010, 09:11 AM #1
Member
- Join Date
- Jun 2010
- Posts
- 9
- Rep Power
- 0
- 06-22-2010, 09:56 AM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,384
- Blog Entries
- 7
- Rep Power
- 17
Nope, no access modifier means the default access modifier which is "package scope"; it means that only objects in the same package as your class may instantiate an object from your class. The class itself can be public which means that everybody (also outside of the package) can use an existing object of that class.
kind regards,
Jos
Similar Threads
-
protected modifier ? Constructors
By javanew in forum New To JavaReplies: 6Last Post: 04-06-2010, 11:59 AM -
default access modifier
By vishnugch in forum New To JavaReplies: 1Last Post: 08-17-2009, 12:48 PM -
Regarding default access modifier?
By makpandian in forum New To JavaReplies: 2Last Post: 03-14-2009, 08:21 AM -
[SOLVED] Unable to access array defiened in constructor in other methods.
By Shyam Singh in forum New To JavaReplies: 1Last Post: 07-20-2008, 04:42 PM -
why we use public access modifier?
By vichet in forum New To JavaReplies: 1Last Post: 04-04-2008, 07:04 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks