30th Apr 2024, 9:51 AM
it371
it371 - avatar
2 Answers
+ 4
Because setData is declared as const.
30th Apr 2024, 11:30 AM
Solo
Solo - avatar
+ 3
cuz setData is const which mean it value must be initialization when declared and it value can't change
30th Apr 2024, 4:34 PM
Alhaaz
Alhaaz - avatar