Re: systematic file(s) deletion
NickName wrote:
Yes, thanks for the note as well as the sample for a Constructor
construction. The little java doc that I got from JBuilder IDE talks a
little bit about Constructor, however, I still don't know if when a
constructor is required for a class and when it is not.
A constructor is required for a class if either
* the instances need some initialization of their state, particularly in
a parametrized way so you need an explicit constructor that takes
arguments, or
* you want to restrict instance creation, so you need to make
constructors protected or private or package-private,
or both.
As for syntax for things like this, that and anything else truly basic
and fundamental is documented at java.sun.com; particularly, check out
the Java Tutorial there and the class library API docs. Those two are
the most crucial references to know; bookmark them in your browser and
be thankful they're free-as-in-beer! (As you grow more experienced, the
API docs will increase and the Tutorial decrease in relative importance
to you. Third party libraries and their API docs will become of interest
at some point too. One wonderful thing about Java in general is how
well-documented everything tends to be, and how avoidable paying for big
doorstops tends to be. For most other languages you need at least one
big fat "Essential C++" or "colored book" or "animal book" or something
of the sort to make any headway!)