0
If I can set an attribute on instantiation of the class by means of a Constructor, why then do I need a Setter?
Setters vs Constructors
3 Respostas
+ 1
So what then are Setters really good for?
0
you can get it by getter, there is no need of setter when you are using constructor. try yourself
0
For Encapsulation