Question: 05: Write with c++ an OOP that find the average of two numbers using friend cless. Create two classes called first and second Class first
05: Write with c++ an OOP that find the average of two numbers using friend cless. Create two classes called first and second Class first contains ce private (u) of type int and a function get_nto read a value for n, Class second contains one private (m) of type int, a function get me to read a value for mind a function avr) which computers the average of n and m. The main program includes the call of all functions.

05: Write an OOP that find the average of two numbers using friend class. Create two classes called first and second Class first contains one private (n) of type int and a function get n( ) to read a value for n. Class second contains one private (m) of type int, a function get m( ) to read a value for m and a function avr( ) which computes the average of n and m. The main program includes the call of all functions
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
