SyntaxFix
Write A Post
Hire A Developer
Questions
Forward declare class B and swap order of A and B definitions: 1st B and 2nd A. You can not call methods of forward declared B class.
class B
A
B