0
Can someone tell me the difference between the declaration of these two fuctions in a class?
int function() const; const int function(); What difference does const make if it's a get function? When there is only one{ return variable;} line in the function?
3 Respostas
+ 3
This would help, I hope!
https://www.geeksforgeeks.org/const-member-functions-c/
+ 2
Mihail
See this maybe helps you:
https://www.geeksforgeeks.org/difference-between-definition-and-declaration/
0
thanks