0
What's different function with set?
3 Answers
+ 1
my knowledge is not much about java but what a simple difference would be is the constructer will work on itself while the setter won't.
+ 1
1.) constructors are called automatically while set
methods are called manually.
2.) constructors are used to instantiate the
attributes only. you can't change value using
constructors instead u have to use set method.
0
this is great