Description : Write a C++ program to find greatest number among two numbers from two different classes using friend function.
Last Answer : include #include class second; class first { int x; public: void getx() { coutx; } friend void max(first,second); }; class second { int y; public: void gety() { couty; } friend void max(first,second); }; void max(first a,second b) { if(a.x>b.y) { cout