[Solved] How to use friend class c++

[ad_1]

Remove the asterisks in your constructor declaration.

Either forward declare Point, or declare Point before Rectangle.

You also really shouldn’t use “using namespace” inside of a header file.

1

[ad_2]

solved How to use friend class c++