RE: extern and global identifiers

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?Q2lhcmFuIE8nJ0Rvbm5lbGw=?=

    RE: extern and global identifiers

    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
    try{ Life(); } catch (TooDifficultException) { throw Toys(); }



    "King Coffee" wrote:
    Hello,
    >
    Do C# support global variables among classes like C++? or is it strictly
    OOP?
    >
    King
    >
  • Ignacio Machin ( .NET/ C# MVP )

    #2
    Re: extern and global identifiers

    On Aug 21, 5:59 am, Ciaran O''Donnell
    <CiaranODonn... @discussions.mi crosoft.comwrot e:
    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''Donnellhttp://wannabedevelope r.spaces.live.c om
    >
    >
    >
    "King Coffee" wrote:
    Hello,
    >
    Do C# support global variables among classes like C++? or is it strictly
    OOP?
    >
    King- Hide quoted text -
    >
    - Show quoted text -
    where is your question though?

    Comment

    Working...