Look at the Dragon class from the previous question. ( Also…

Questions

Lооk аt the Drаgоn clаss from the previous question. ( Also copied below). What edits would you make to that class so that it keeps track of The total number of Dragon objects created The total gold across all dragons, where the total gold stays correct even after addGold() is called? Write the lines you would add or change, and clearly indicate where each goes (which field, constructor, or method since you edit at more than one place for one desired change). Your edits should also make both totals retrievable from outside the class.