Computer Science, asked by yuvichl3249, 2 months ago

Create a common friend
interest_cal() of three classes
such as: Class A,B and C. Class A
is having principle(float) private
data member and inputA()
public member function for
taking input of principle, Class B
is having rate(float) private data
member and inputB() public
member function for taking
input of rate, Class C is having
time(float) private data
member and inputC() public
member function for taking
input of time. Friend function
interest_cal() calculates and
displays simple interest after
accessing private members of
class A,B and C respectively

Answers

Answered by anupatil172
1

Answer:

Class A is having principle( float) private data member and inputA() public member function for taking input of principle, ...

Similar questions