Find maximum number from two classes using Friend Function in C++