Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

public constructor for default class

 
M Marsden
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 48921
58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic