If class B uses only pointers or references of class A, you don’t have to include A.h. You can simply forward declare class A as shown below.
//File B.hclass A; //forward Decalarationclass B{ A * ptrA; .. //other members};
If class B uses only pointers or references of class A, you don’t have to include A.h. You can simply forward declare class A as shown below.
//File B.hclass A; //forward Decalarationclass B{ A * ptrA; .. //other members};
Recent Articles:
In today’s digital world, technology has changed how we make payments. From contactless cards to mobile wallets, it’s now easier
No matter what you do or where you work, you are likely to encounter Windows software at some point or