This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes public constructor for default class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "public constructor for default class" Watch "public constructor for default class" New topic
Author

public constructor for default class

M Marsden
Greenhorn

Joined: Jun 18, 2008
Posts: 18
Can't imagine this question hasn't been asked before, but I'm not having any luck finding it -- what is the functionality of having a default-access class with a public constructor?

Thanking you in advance....
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 37884
    
  22
Welcome to JavaRanch

You can extend it into a public class in the same package. I am sure there are other uses, however. Anybody else?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: public constructor for default class
 
Similar Threads
default constructor?????
Access modifier question
Model or bean class is not available to Action Class
default constructor access
Default constructor