Computer Science, asked by hananhan838, 5 months ago

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 and function avr() which average of and m. The main program includes the call of all functions

Answers

Answered by viiiakajal9
0

Answer:

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 and function avr() which average of and m. The main program includes the call of all functions

Similar questions