+ 1

Now to upgrade the code to lead balance and percent.

See the 65.2 practice lesson.

3rd Dec 2021, 9:13 AM
Vladimir Kushner
Vladimir Kushner - avatar
1 Answer
+ 1
Add this to the Account class : Account operator+(Account obj) { Account res; res.interest = obj.interest + interest; res.balance = obj.balance + balance; return res; } I'm making a serie of tutorials about things related to coding, and C++ is in the list, so you may check the page below and comment what you want to learn if Sololearn courses aren't sufficient (following me will notice you about new posted code) https://code.sololearn.com/WIb425hnGqfl/?ref=app
3rd Dec 2021, 4:34 PM
VCoder
VCoder - avatar