0
When would you use a constant class?
3 Respostas
+ 2
i guess it is when you know definitely that the variable within should not be changed.
0
when you dont want the user to change the variables within
0
we use a constant class when we want that the value does not change in the whole program.
Ex: const float pi = 3.14;
Here the variable named 'pi' does not changes its value in the whole program, though you want to change.
If you understood then please follow me.