๐ฑ Iโm currently learning MERN
๐ฌ Ask me about MERN or any tech related stuff.
๐ซ How to reach me [email protected]
๐ Know about my experiences https://www.linkedin.com/in/harsh-sharma-181065230/
โก Fun fact I love One Piece
harsh-1000 / amount Goto Github PK
View Code? Open in Web Editor NEWQ6. Suppose you have a Piggie Bank with an initial amount of 50 and you have to add some more amount to it. Create a class 'AddAmount' with a data member named 'amount' with an initial value of 50. Now make two constructors of this class as follows: 1 - without any parameter - no amount will be added to the Piggie Bank 2 - having a parameter which is the amount that will be added to Piggie Bank Create object of the 'AddAmount' class and display the final amount in Piggie Bank.