Hello
(I'm new to object oriented programming)
I have a class a where I declare a variable
Code:
class A { private: int x; }
I have declared another class B in the project but in a different file
when I use x it tells me that it isn't declared.
How can I declare x so that it is visible to B?