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
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
Accountancy,
4 months ago
Science,
4 months ago
English,
4 months ago
Math,
9 months ago
World Languages,
9 months ago
Science,
1 year ago
English,
1 year ago
English,
1 year ago