In OOP everything should belong to a class. You can have static
variables/properties on a class that can be read by everything that can see
the class. Some people implement a class called something like
SystemVariables which has a set of static properties to achieve this, they
are often linked to configuration files too.
--
Ciaran O''Donnell
"King Coffee" wrote:
variables/properties on a class that can be read by everything that can see
the class. Some people implement a class called something like
SystemVariables which has a set of static properties to achieve this, they
are often linked to configuration files too.
--
Ciaran O''Donnell
"King Coffee" wrote:
Hello,
>
Do C# support global variables among classes like C++? or is it strictly
OOP?
>
King
>
>
Do C# support global variables among classes like C++? or is it strictly
OOP?
>
King
>
Comment