Hi all,
I am quite confused about the usage of both. Both of them seems to enable a variable to be shared consistently between classes.
Is the following true?
Namespace-used for defining some constant values that you want to share in your application.
Static variable-used to maintain a consistent value throughout the application.
Does variables in a namespace behaves like a static variable where it will keep the most recent value?
Any help is much appreciated.
Cheers!