Using getter/setter are optionals . It could be helpful in some situations , for example when you need to add additional logic when you get the data.
Using getter/setter are optionals . It could be helpful in some situations , for example when you need to add additional logic when you get the data.