[Solved] How to use friend class c++


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

solved How to use friend class c++