i am facing problems in understanding some isuues in uml desiging.
- when i design a program i dont know exactly what do the program need to run properly . and sometimes i need to add a variable in oreder to make a certain method to work properly. the Question is how can i avoid this thing from the beginning ?
2)i found some details in the code not to be mentioned in the uml design like if stetements and some expressions and even some methods and objects like main() and actionlistener . But i coudnt realize the fundamental of this .
3)when i need a constructer ? i still dont understand why some programs have a constructor .You can use what ever you want of methods without constructor what is the need for constructor sometimes ?