[blue]To call a member function like you are trying to do, you either need to use an actual instance of the A class [b]or[/b] you need to make the function [italic]static[/italic]... and I'm guessing you want to go the [italic]static[/italic] route.[/blue]

[blue]You mean have I compiled the corrected example I provided you? Yes I have. I've even tested it a couple times. Post the errors you are getting.

You don't need to use friend classes for the example you provided. You only need to use friend classes if you want to access another classes non-public member function/variables which does not apply to the example you provided. The [italic]A::get1[/italic] function is declared as public so you do not need to declare B as a friend class. You could make it private instead in which case you would need to use a friend statement in class A (not .[/blue]