CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2010
    Location
    .NET 4.0/VS2010
    Posts
    79

    working with classes and variable types

    hey guys

    i need to know how do i make a class full of variables and use them in various forms? in other words what variable type do i need to use so that they are able to be accessed and modified outside the class that they are in.

  2. #2
    Join Date
    Dec 2008
    Posts
    144

    Re: working with classes and variable types

    http://lmgtfy.com/?q=C%23+variable+scope

    First you need to understand the basics of what Variable Scope is. The Type of the variable has nothing to do with its scope. Scope is determined by where the variable is instantiated.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured