1. Create a friend class BestFriend to the class frac. Inside the class BestFriend, and implement a function outputfrac() to print the content of the frac instance.
2. Create a friend function outputfrac() to print the content of the frac instance for class GoodFriend to the class frac.
Attachment:- program.txt