0

I couldn't understand property and setter and their purpose

28th Aug 2019, 9:31 PM
Mohamed Elsherif
Mohamed Elsherif - avatar
4 Answers
+ 2
lets say you have a class with private variables(that means they can't be accest by anything other than the class itself) than you use a getter and setter to do that without directly changing thr variable
29th Aug 2019, 5:59 AM
Cat Sauce
Cat Sauce - avatar
+ 1
the setter and getter?
28th Aug 2019, 10:57 PM
Cat Sauce
Cat Sauce - avatar
29th Aug 2019, 5:18 AM
Mohamed Elsherif
Mohamed Elsherif - avatar
0
Ok...I got it... Thanks Cat Sauce
29th Aug 2019, 6:03 AM
Mohamed Elsherif
Mohamed Elsherif - avatar