File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "public constructor for default class" Watch "public constructor for default class" New topic

public constructor for default class

M Marsden

Joined: Jun 18, 2008
Posts: 21
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

Joined: Oct 13, 2005
Posts: 45364
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?
I agree. Here's the link:
subject: public constructor for default class
It's not a secret anymore!