+ 2

what is the difference between setter and getter in Java?

17th Dec 2016, 2:15 PM
Alaghusooriya EM
Alaghusooriya EM - avatar
3 Antworten
+ 2
I think that, setter can sets the value for the variables and it can be accessed by getter using objects
17th Dec 2016, 2:16 PM
Alaghusooriya EM
Alaghusooriya EM - avatar
0
yes, it's right
17th Dec 2016, 5:18 PM
Vladimir Honcharenko
Vladimir Honcharenko - avatar
0
yes ur r8
12th Jan 2017, 5:18 PM
Pramod Patil
Pramod Patil - avatar