#include <iostream>
#include<string>
class apple; //friend declaration for apple
class human {
public:
void take_apple(apple& app);//this is a declaration
};
class apple {
private:
int weight;
std::string color;
public:
apple(const int weight, const std::string color) {
this->weight = weight;
this->color = color;
}
friend void human::take_apple(apple& app);
};
//this is the definition of the member function
void human::take_apple(apple& app) {};
int main()
{
return 0;
}