Meaningless Drivel is fun!*
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 Android Security Essentials Live Lessons this week in the Android forum!
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: 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

Joined: Oct 13, 2005
Posts: 38048
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?
Don't get me started about those stupid light bulbs.
subject: public constructor for default class
Similar Threads
Default constructor
default constructor?????
Model or bean class is not available to Action Class
Access modifier question
default constructor access