Re: [java programming] 1034 java control - creating new instance

2010-08-30 Thread Mihai DINCA
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

[java programming] 1034 java control - creating new instance

2010-08-30 Thread Manluf
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 commente