Access variables of another class.

April 15, 2009 at 05:19:11
Specs: Linux i686
Is there any way in C++ to access the variables of one class in another class provided the two classes are two separate files.

See More: Access variables of another class.

Report •


#1
April 15, 2009 at 06:30:10
You can if you #include that class's header file, and the variable in question is public.

Report •

#2
April 15, 2009 at 21:19:12
i didn get the exact idea.Can you give some example plz ... ??

Report •

Related Solutions


Ask Question