Question: Add the following mutator method to the Stock class: public void clear() Resets this Stock s number of shares purchased and total cost to 0.
Add the following mutator method to the Stock class:
public void clear()
Resets this Stock ’s number of shares purchased and total cost to 0.
Step by Step Solution
3.37 Rating (166 Votes )
There are 3 Steps involved in it
Removes all purcha... View full answer
Get step-by-step solutions from verified subject matter experts
