0
why to make a contructor and assign a value? Isint that same as just assigning a value....???
2 Antworten
0
If you assign a value outside the constructor, you are assigning a static value that all instances of that class share. Assigning it inside gives each object it's own value to be used independently of the other objects.
0
ohh got it....
thanx alot...