- Create A C Class Named Money Containing Two Private Integer Data Members Named Dollars And Cents Include Member Funct 1 (125.34 KiB) Viewed 13 times
Create a C++ class named Money containing two private integer data members named dollars and cents. Include member funct
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Create a C++ class named Money containing two private integer data members named dollars and cents. Include member funct
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.