32.6k views
4 votes
Consider that we want to write a function compare to compare a Cat from question B1 and a Dragon from question B2. If we want this to be a friend function, what do we do and why? Assume that a particular Cat is considered better than a particular Dragon if the product of the tail length and number of teeth is greater than the age of the dragon. Write the implementation of such a function.​

1 Answer

7 votes
It’s c because I did it to
User Tada
by
6.7k points