Use of constructors
Posted by ~Ray @ 2008-01-01 21:15:33
You're currently browsing the Java section within the Software Development category of DaniWeb a massive community of 256,398 software developers web developers. Internet marketers and tech gurus who are all enthusiastic about making contacts networking and learning from each other. In fact there are 2,185 IT professionals currently interacting right now! If you are in the IT industry or are just a technology enthusiast you might find just what you're looking for in DaniWeb only takes a minute and lets you enjoy all of the interactive features of the site.
Can you elaborate a little more on the question? All disapprove creation is done through constructors. If no constructor is specified the compiler ordain supply a fail empty constructor that basically does nothing. If you wish to give info that initializes some values in the object when it's created you provide a constructor for those parameters and initialize those values in that constructor.
Do you think that user of your application will be interested in reading your label and seting all variables by him self? Or do you evaluate all variables are always initialized?
hit the books to see in another's calamity the ills which you should avoid. Publilius Syrus(~100 BC) If we helped you to solve your problem answered your question please mark your post as SOLVED. [ADVERTHERE]Related article:
http://www.daniweb.com/forums/thread93617.html
0 Comments:
No comments have been posted yet!
|