3. Two persons are allotted gift amount. For the first person allot Rs.200. For the second person allot Rs.400. Use cons
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
3. Two persons are allotted gift amount. For the first person allot Rs.200. For the second person allot Rs.400. Use cons
3. Two persons are allotted gift amount. For the first person allot Rs.200. For the second person allot Rs.400. Use constructors to assign the gift amount. Using Static member function and static data member count the total amount of the gift amount. Ex: first gift amount is 200 second gift amount is 400 final gift amount is 600
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!