Hi Manluf
Usually the classes are instantiated and may need a constructor. This is
the most common structure of a class, so the code was written with the
most general schema in mind. In this very precise example, there is no
need to instantiate a NumWords object.
Hope it helps
Mihai
Manluf a écrit :
Hi all,
I am working with lab 1034 and my question is not about control
sentence, really.
I dont understand (at this point) why we need create an instance of
NumWords
public class NumWords {
/** Creates a new instance of NumWords */
public NumWords() {
}
....
I have commented these lines and the program work well.
Thanks in advance
Manuel
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/javaprogrammingwithpassion?hl=en