CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: dlorde

Search: Search took 2.61 seconds.

  1. Replies
    4
    Views
    28,963

    Re: Help with accessing variables in other classes

    You're welcome.

    That is what a constructor is for - to initialise a class object to a valid state. Any essential information it can't get for itself must be passed in to it.

    If you're not...
  2. Replies
    4
    Views
    28,963

    Re: Help with accessing variables in other classes

    There are three main ways to access values in another class object. You can access the variable directly in the other object, or call a method on the object that returns a value, or have the other...
Results 1 to 2 of 2





Click Here to Expand Forum to Full Width

Featured