Page 1 of 1

Create a C++ class named Money containing two private integer data members named dollars and cents. Include member funct

Posted: Tue May 24, 2022 7:44 am
by answerhappygod
Create A C Class Named Money Containing Two Private Integer Data Members Named Dollars And Cents Include Member Funct 1
Create A C Class Named Money Containing Two Private Integer Data Members Named Dollars And Cents Include Member Funct 1 (125.34 KiB) Viewed 27 times
Create a C++ class named Money containing two private integer data members named dollars and cents. Include member functions to input and display the private data members. Write two friend functions as stated below. i) To return the maximum of two "money" objects passed to it. ii) To return the clone (duplicate) of the object passed to it. Write a C++ program to test the functionality of the above friend functions.