0

What's different function with set?

30th Jul 2016, 4:29 PM
STEVEN MICHAEL CHRISTIAN
STEVEN MICHAEL CHRISTIAN - avatar
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.
2nd Aug 2016, 1:50 PM
cocoacheescakemuffin
cocoacheescakemuffin - avatar
+ 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.
9th Sep 2016, 9:10 PM
sourabh patel
sourabh patel - avatar
0
this is great
12th Oct 2016, 7:18 PM
Oswald Broström
Oswald Broström - avatar