Transcription: In this definition of the fraction class, the functions print and display do the same thing. The function print is declared to be a friend of the class and therefore can access all public and private members of the fraction class. Notice how the function print uses the private members num and denom of the fraction class.