1. As you probably understood, the copy-ctor task is not as easy as it
seemed to be.
2. Indeed you need to support copy of array of stocks, copy-ctor of
stock, and to take care of the inner-class as well.
3. In order to make sure it all works together - please add (as part of
exercise 6) to your portfolio servlet the following output to html:
3.1 [keep the original portfolio ("portfolio1") creation]
3.2 create portfolio2 which is a copy of portfolio1. (copy, not
reference).
3.3 change title of portfolio2 to "Portfolio #2";
3.4 make sure your portfolio method of getting html code includes
portfolio title.
3.5 print portfolio1
3.6 print portfolio2
3.7 remove first stock from portfolio1
3.8 print portfolio1
3.9 print portfolio2
3.10 change last stock's bid value of portfolio2 to 55.55
3.11 print portfolio1
3.12 print portfolio2