Question: An overloaded operator declaration + or + = to support a fast transfer of $ 4 0 . 0 0 from one bank account to

An overloaded operator declaration + or += to support a fast transfer of $40.00
from one bank account to another. For example, this operation may be done using
the following code:
accts.at(dstAcctIndex)+= accts.at(srcAcctIndex);
where accts is a vector of Account type in my main() function and I am
moving $40.00 from a source account (denoted by srcAcctIndex) to a
destination account (denoted by dstAcctIndex). More details on this particular
functionality will be provided in the description of the fast transfer menu function

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!